diff options
author | Pranith Kumar K <pkarampu@redhat.com> | 2017-06-06 12:31:58 +0530 |
---|---|---|
committer | Prasanna Kumar Kalever <pkalever@redhat.com> | 2017-06-06 10:00:39 +0000 |
commit | 4b128f2ff635e4381bc310663da9f1c73b28e76e (patch) | |
tree | 47b9ad4027512f9bc48c70966ddf0412f14d2826 | |
parent | 8169bb6a4f26bd982aa34d1ce5954a2b372f6532 (diff) |
Fix compiler warnings
Change-Id: I9dd396737a6719fe3828ec3e9c26bfd8aa1da238
Signed-off-by: Pranith Kumar K <pkarampu@redhat.com>
-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; } |