diff options
author | Peter Rajnoha <prajnoha@redhat.com> | 2015-08-04 09:33:55 +0200 |
---|---|---|
committer | Peter Rajnoha <prajnoha@redhat.com> | 2015-08-04 09:33:55 +0200 |
commit | 83541123c81b8ff129175963866d9fbd01c21e38 (patch) | |
tree | c4cb76c9652a772a0efb7b8e2285ea0388937a11 /lib/log | |
parent | 46e6b2b86e58e081fa40e9cc724f09f03ecf843e (diff) | |
download | lvm2-83541123c81b8ff129175963866d9fbd01c21e38.tar.gz |
coverity: fix cppcheck warnings
/lib/log/log.c:88: warning[invalidScanfArgType_int]: %llu in format string (no. 2) requires 'unsigned long long *' but the argument type is 'long long *'.
daemons/lvmlockd/lvmlockd-core.c:791: error[uninitstring]: Dangerous usage of 'version' (strncpy doesn't always null-terminate it).
Diffstat (limited to 'lib/log')
-rw-r--r-- | lib/log/log.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/log/log.c b/lib/log/log.c index 992909000..bd1136393 100644 --- a/lib/log/log.c +++ b/lib/log/log.c @@ -69,7 +69,7 @@ void init_log_file(const char *log_file, int append) static const char statfile[] = "/proc/self/stat"; const char *env; int pid; - long long starttime; + unsigned long long starttime; FILE *st; int i = 0; |