Commit 7b3aa69f authored by Matteo Quintiliani's avatar Matteo Quintiliani
Browse files

Fixed minor warnings


git-svn-id: file:///home/quintiliani/svncopy/nmxptool/trunk@1337 3cd66e75-5955-46cb-a940-c26e5fc5497d
parent 740ec356
......@@ -7,7 +7,7 @@
* Istituto Nazionale di Geofisica e Vulcanologia - Italy
* quintiliani@ingv.it
*
* $Id: nmxp_base.c,v 1.82 2010-05-12 09:27:19 mtheo Exp $
* $Id: nmxp_base.c,v 1.83 2010-08-27 07:38:05 mtheo Exp $
*
*/
......@@ -255,9 +255,13 @@ char *nmxp_strerror(int errno_value) {
#endif
#ifndef HAVE_STRERROR_R
if(recv_errno_str) {
#endif
strncpy(ret_recv_errno_str, recv_errno_str, MAXLEN_RECV_ERRNO_STR);
#ifndef HAVE_STRERROR_R
}
#endif
return ret_recv_errno_str;
}
......
......@@ -7,7 +7,7 @@
* Istituto Nazionale di Geofisica e Vulcanologia - Italy
* quintiliani@ingv.it
*
* $Id: nmxp_log.c,v 1.23 2009-08-31 12:16:41 mtheo Exp $
* $Id: nmxp_log.c,v 1.24 2010-08-27 07:37:59 mtheo Exp $
*
*/
......@@ -47,13 +47,13 @@ const char *nmxp_log_version() {
int nmxp_log_stdout(char *msg) {
int ret = fprintf(stdout, msg);
int ret = fprintf(stdout, "%s", msg);
fflush(stdout);
return ret;
}
int nmxp_log_stderr(char *msg) {
int ret = fprintf(stderr, msg);
int ret = fprintf(stderr, "%s", msg);
fflush(stderr);
return ret;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment