summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-04-01 17:19:41 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2015-04-01 17:19:41 (GMT)
commit0de7807c36ebfbaadf0e9b45bdf9fd79360c8eaf (patch)
tree8abb483969a07a4481423089790380fe392ccde6
parent0c69ca831b69c9fd84a5c6335ffba0192b57f42e (diff)
parente86f44b72616ebce43dcd62d170f7ca90ff31fdf (diff)
downloadCMake-0de7807c36ebfbaadf0e9b45bdf9fd79360c8eaf.zip
CMake-0de7807c36ebfbaadf0e9b45bdf9fd79360c8eaf.tar.gz
CMake-0de7807c36ebfbaadf0e9b45bdf9fd79360c8eaf.tar.bz2
Merge topic 'cpack-deb-format-cast'
e86f44b7 cmCPackDebGenerator: Cast file mode to proper type for %o formatter
-rw-r--r--Source/CPack/cmCPackDebGenerator.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/CPack/cmCPackDebGenerator.cxx b/Source/CPack/cmCPackDebGenerator.cxx
index 87764e1..fcf4122 100644
--- a/Source/CPack/cmCPackDebGenerator.cxx
+++ b/Source/CPack/cmCPackDebGenerator.cxx
@@ -805,12 +805,14 @@ static int put_arobj(CF *cfp, struct stat *sb)
if (lname > sizeof(hdr->ar_name) || strchr(name, ' '))
(void)sprintf(ar_hb, HDR1, AR_EFMT1, (int)lname,
(long int)sb->st_mtime, (unsigned)uid, (unsigned)gid,
- sb->st_mode, (long long)sb->st_size + lname, ARFMAG);
+ (unsigned)sb->st_mode, (long long)sb->st_size + lname,
+ ARFMAG);
else {
lname = 0;
(void)sprintf(ar_hb, HDR2, name,
(long int)sb->st_mtime, (unsigned)uid, (unsigned)gid,
- sb->st_mode, (long long)sb->st_size, ARFMAG);
+ (unsigned)sb->st_mode, (long long)sb->st_size,
+ ARFMAG);
}
off_t size = sb->st_size;