projects
/
typhoon.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update codebase to remove clang warnings (and a couple of legit errors
[typhoon.git]
/
src
/
util.c
diff --git
a/src/util.c
b/src/util.c
index 599c16dde572600c1efdc15d3d40c24294b1d21f..34b3739d51ec22b6395e05f21a607de21b4f74e6 100755
(executable)
--- a/
src/util.c
+++ b/
src/util.c
@@
-426,7
+426,7
@@
Return value:
//
// Skip chunks
//
//
// Skip chunks
//
- while(!isspace(*p) &&
&
p) p++;
+ while(!isspace(*p) &&
*
p) p++;
if (!*p) return(NULL);
}
while(1);
if (!*p) return(NULL);
}
while(1);
@@
-702,13
+702,13
@@
Return value:
// Send to logfile
//
if (NULL != g_pfLogfile) {
// Send to logfile
//
if (NULL != g_pfLogfile) {
- fprintf(g_pfLogfile, buf);
+ fprintf(g_pfLogfile,
"%s",
buf);
}
//
// Send to stdout
//
}
//
// Send to stdout
//
- fprintf(stdout, buf);
+ fprintf(stdout,
"%s",
buf);
fflush(stdout);
}
fflush(stdout);
}
@@
-747,7
+747,7
@@
Return value:
// Send to logfile
//
if (NULL != g_pfLogfile) {
// Send to logfile
//
if (NULL != g_pfLogfile) {
- fprintf(g_pfLogfile, buf);
+ fprintf(g_pfLogfile,
"%s",
buf);
fflush(g_pfLogfile);
}
}
fflush(g_pfLogfile);
}
}
@@
-788,14
+788,14
@@
Return value:
// Send it to logfile
//
if (NULL != g_pfLogfile) {
// Send it to logfile
//
if (NULL != g_pfLogfile) {
- fprintf(g_pfLogfile, buf);
+ fprintf(g_pfLogfile,
"%s",
buf);
fflush(g_pfLogfile);
}
//
// Send it to stderr
//
fflush(g_pfLogfile);
}
//
// Send it to stderr
//
- fprintf(stderr, buf);
+ fprintf(stderr,
"%s",
buf);
fflush(stderr);
}
fflush(stderr);
}