Fix some minor compiler issues
authorJeremy Tan <[email protected]>
Mon, 28 Oct 2013 13:38:48 +0000 (21:38 +0800)
committerJeremy Tan <[email protected]>
Mon, 28 Oct 2013 13:38:48 +0000 (21:38 +0800)
server/data.h
server/fastcgi.c

index d6234fd..0573c2e 100644 (file)
@@ -49,6 +49,7 @@ extern int Data_Read(DataFile * df, DataPoint * buffer, int index, int amount);
 extern void Data_PrintByIndexes(DataFile * df, int start_index, int end_index, DataFormat format);  // Print data buffer
 extern void Data_PrintByTimes(DataFile * df, double start_time, double end_time, DataFormat format); // Print data between time values
 extern int Data_FindByTime(DataFile * df, double time_stamp, DataPoint * closest); // Find index of DataPoint with the closest timestamp to that given
+extern double Data_Calibrate(double value, double x[], double y[], int size);
 
 extern void Data_Handler(DataFile * df, FCGIValue * start, FCGIValue * end, DataFormat format, double current_time); // Helper; given FCGI params print data
 extern DataFormat Data_GetFormat(FCGIValue * fmt); // Helper; convert human readable format string to DataFormat
index c246781..9ff3acc 100644 (file)
@@ -556,7 +556,7 @@ char *FCGI_URLDecode(char *buf)
                        if (isxdigit(*tail) && isxdigit(*(tail+1))) {
                                hex[0] = *tail++;
                                hex[1] = *tail++;
-                               char val = (char)strtol(hex, NULL, 16);
+                               val = (char)strtol(hex, NULL, 16);
                                //Control codes --> Space character
                                *head++ = (val < 0x20) ? 0x20 : val;
                        } else { //Not valid format; keep original

UCC git Repository :: git.ucc.asn.au