[Kst] extragear/graphics/kst/kst/datasources/frame
Andrew Walker
arwalker at sumusltd.com
Mon Jun 13 22:28:38 CEST 2005
SVN commit 425089 by arwalker:
remove compiler warnings
M +3 -3 readdata.c
--- trunk/extragear/graphics/kst/kst/datasources/frame/readdata.c #425088:425089
@@ -135,7 +135,7 @@
/* StringToCode: turn a <=8 byte string into a 64 bit int */
/* */
/***************************************************************************/
-static long long RD_StringToCode(char *tmpcode) {
+static long long RD_StringToCode(const char *tmpcode) {
long long code;
char *cptr;
int i;
@@ -143,7 +143,7 @@
cptr=(char*) &code;
code=0;
- for (i=0;i<(int)strlen(tmpcode); i++) {
+ for (i=0; i<(int)strlen(tmpcode); i++) {
cptr[i]=tmpcode[i];
}
for (i=strlen(tmpcode); i<8; i++) {
@@ -320,7 +320,7 @@
/* returns error code */
/* */
/***************************************************************************/
-static int RD_GetFieldIndex(char *field_code,int i_format, int *i_field) {
+static int RD_GetFieldIndex(const char *field_code,int i_format, int *i_field) {
unsigned long long lfield_code;
static int i_f=0;
int n;
More information about the Kst
mailing list