mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2026-01-12 07:35:55 +01:00
2021-06-02 Fred Gleason <fredg@paravelsystems.com>
* Cleaned up compile warnings in rdxport.cgi. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -21854,3 +21854,5 @@
|
|||||||
* Cleaned up compile warnings in rdrender(1).
|
* Cleaned up compile warnings in rdrender(1).
|
||||||
2021-06-02 Fred Gleason <fredg@paravelsystems.com>
|
2021-06-02 Fred Gleason <fredg@paravelsystems.com>
|
||||||
* Cleaned up compile warnings in rdselect_helper(1).
|
* Cleaned up compile warnings in rdselect_helper(1).
|
||||||
|
2021-06-02 Fred Gleason <fredg@paravelsystems.com>
|
||||||
|
* Cleaned up compile warnings in rdxport.cgi.
|
||||||
|
|||||||
@@ -298,7 +298,7 @@ void Xport::EditCart()
|
|||||||
case RDCart::Macro:
|
case RDCart::Macro:
|
||||||
line=0;
|
line=0;
|
||||||
while(xport_post->getValue(QString().sprintf("MACRO%d",line++),&value)) {
|
while(xport_post->getValue(QString().sprintf("MACRO%d",line++),&value)) {
|
||||||
value.trimmed();
|
value=value.trimmed();
|
||||||
if(value.right(1)!="!") {
|
if(value.right(1)!="!") {
|
||||||
delete cart;
|
delete cart;
|
||||||
XmlExit("Invalid macro data",400,"carts.cpp",LINE_NUMBER);
|
XmlExit("Invalid macro data",400,"carts.cpp",LINE_NUMBER);
|
||||||
|
|||||||
@@ -180,7 +180,7 @@ void Xport::Export()
|
|||||||
fflush(NULL);
|
fflush(NULL);
|
||||||
if((fd=open(tmpfile.toUtf8(),O_RDONLY))>=0) {
|
if((fd=open(tmpfile.toUtf8(),O_RDONLY))>=0) {
|
||||||
while((n=read(fd,data,2048))>0) {
|
while((n=read(fd,data,2048))>0) {
|
||||||
write(1,data,n);
|
RDCheckReturnCode("Export() write",write(1,data,n),n);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
close(fd);
|
close(fd);
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
//
|
//
|
||||||
// Rivendell web service portal -- ExportPeaks service
|
// Rivendell web service portal -- ExportPeaks service
|
||||||
//
|
//
|
||||||
// (C) Copyright 2010-2018 Fred Gleason <fredg@paravelsystems.com>
|
// (C) Copyright 2010-2021 Fred Gleason <fredg@paravelsystems.com>
|
||||||
//
|
//
|
||||||
// This program is free software; you can redistribute it and/or modify
|
// This program is free software; you can redistribute it and/or modify
|
||||||
// it under the terms of the GNU General Public License version 2 as
|
// it under the terms of the GNU General Public License version 2 as
|
||||||
@@ -73,6 +73,8 @@ void Xport::ExportPeaks()
|
|||||||
fflush(NULL);
|
fflush(NULL);
|
||||||
unsigned short *peaks=new unsigned short[wave->energySize()];
|
unsigned short *peaks=new unsigned short[wave->energySize()];
|
||||||
wave->readEnergy(peaks,wave->energySize());
|
wave->readEnergy(peaks,wave->energySize());
|
||||||
write(1,peaks,sizeof(unsigned short)*wave->energySize());
|
RDCheckReturnCode("ExportPeaks() write",
|
||||||
|
write(1,peaks,sizeof(unsigned short)*wave->energySize()),
|
||||||
|
sizeof(unsigned short)*wave->energySize());
|
||||||
Exit(0);
|
Exit(0);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user