diff options
author | Joerg Mayer <jmayer@loplof.de> | 2016-06-01 08:58:48 +0200 |
---|---|---|
committer | Jörg Mayer <jmayer@loplof.de> | 2016-06-01 07:01:47 +0000 |
commit | 1192798089a952325d24541fe8506fe2c2cd3fb7 (patch) | |
tree | 6ff55641bd5f80a1612e4c4ed4932ea5de714771 /wsutil | |
parent | 69a258514762405ce06ea5f65b7e8671743b65a1 (diff) |
Fix compile error:
[ 0%] Building C object wsutil/CMakeFiles/wsutil.dir/tempfile.c.o
/Users/jmayer/worktmp/wireshark/git/wsutil/tempfile.c:228:37: error: implicit conversion loses integer precision: 'unsigned long' to 'int'
[-Werror,-Wshorten-64-to-32]
fd = mkstemps(tf[idx].path, sfx ? strlen(sfx) : 0);
~~~~~~~~ ^~~~~~~~~~~
1 error generated.
No idea whether this is the correct fix.
Change-Id: I80202d7eaad11fc3dcb5f9847f6e162caccb7e6e
Reviewed-on: https://code.wireshark.org/review/15672
Reviewed-by: Jörg Mayer <jmayer@loplof.de>
Diffstat (limited to 'wsutil')
-rw-r--r-- | wsutil/tempfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wsutil/tempfile.c b/wsutil/tempfile.c index ed6dd5b8d3..7391fbfc76 100644 --- a/wsutil/tempfile.c +++ b/wsutil/tempfile.c @@ -225,7 +225,7 @@ create_tempfile(char **namebuf, const char *pfx, const char *sfx) permissions, attempt to create the file, and then put the umask back. */ old_umask = ws_umask(0077); - fd = mkstemps(tf[idx].path, sfx ? strlen(sfx) : 0); + fd = mkstemps(tf[idx].path, sfx ? (int) strlen(sfx) : 0); ws_umask(old_umask); return fd; } |