[Kst] extragear/graphics/kst/kst/datasources/frame

Andrew Walker arwalker at sumusltd.com
Tue Jun 7 20:11:58 CEST 2005


SVN commit 423168 by arwalker:

Remove compiler warnings

 M  +3 -3      creaddata.c  


--- trunk/extragear/graphics/kst/kst/datasources/frame/creaddata.c #423167:423168
@@ -136,7 +136,7 @@
 /*     StringToCode: turn a <=8 byte string into a 64 bit int              */
 /*                                                                         */
 /***************************************************************************/
-static long long StringToCode(char *tmpcode) {
+static long long StringToCode(const char *tmpcode) {
   long long code;
   char *cptr;
   int i;
@@ -384,7 +384,7 @@
 /*    returns the index for END if the code isn't found first          */
 /*                                                                         */
 /***************************************************************************/
-static int GetFieldIndex(char *field_code,int i_format, int *i_field) {
+static int GetFieldIndex(const char *field_code,int i_format, int *i_field) {
   unsigned long long lfield_code;
   unsigned long long *codes;
   int i_f,n;
@@ -717,7 +717,7 @@
 /*    FindT0: find creation time of the dt file                            */
 /*                                                                         */
 /***************************************************************************/
-static int FindT0(char *filename, double srate) {
+static int FindT0(const char *filename, double srate) {
   char tmpfilename[180];
   struct stat buf;
   int t0;


More information about the Kst mailing list