[Kst] extragear/graphics/kst/src/datasources/dirfile

Andrew Walker arwalker at sumusltd.com
Tue Jan 16 21:18:58 CET 2007


SVN commit 624235 by arwalker:

remove some compiler warnings

 M  +2 -2      getdata.c  


--- trunk/extragear/graphics/kst/src/datasources/dirfile/getdata.c #624234:624235
@@ -1015,7 +1015,7 @@
 /*        used if s0<0 - fill up to 0, or up to ns+s0, whichever is less   */
 /*                                                                         */
 /***************************************************************************/
-static int FillZero(char *databuffer, char type, int s0, int ns) {
+static int FillZero(unsigned char *databuffer, char type, int s0, int ns) {
   int i, nz;
   const double NaN = NAN;
 
@@ -1938,7 +1938,7 @@
     int num_frames, int num_samp,
     char return_type, void *data_out,
     int *error_code) {
-  int n_read;
+  int n_read = 0;
 
   if (recurse_level>10) {
     *error_code = SetGetDataError(GD_E_RECURSE_LEVEL, 0, NULL, 0, field_code);


More information about the Kst mailing list