diff options
-rw-r--r-- | daemon/gluster-blockd.c | 1 | ||||
-rw-r--r-- | utils/utils.c | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/daemon/gluster-blockd.c b/daemon/gluster-blockd.c index de9953b..56e5197 100644 --- a/daemon/gluster-blockd.c +++ b/daemon/gluster-blockd.c @@ -285,7 +285,6 @@ main (int argc, char **argv) pthread_t server_thread; struct flock lock = {0, }; int errnosv = 0; - size_t opt = 0; if (glusterBlockDParseArgs(argc, argv)) { diff --git a/utils/utils.c b/utils/utils.c index ce93f87..4a4960f 100644 --- a/utils/utils.c +++ b/utils/utils.c @@ -162,7 +162,7 @@ logTimeNow(char *buf, size_t bufSize) if (tv.tv_sec && gmtime_r(&tv.tv_sec, &tm) != NULL) { strftime (buf, bufSize, "%Y-%m-%d %H:%M:%S", &tm); - snprintf (buf + strlen(buf), bufSize - strlen(buf), ".%06d", tv.tv_usec); + snprintf (buf + strlen(buf), bufSize - strlen(buf), ".%06ld", tv.tv_usec); return; } |