summaryrefslogtreecommitdiffstats
path: root/Source/CPack/cmCPackDebGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-03-31 20:28:28 (GMT)
committerBrad King <brad.king@kitware.com>2015-03-31 20:28:28 (GMT)
commite86f44b72616ebce43dcd62d170f7ca90ff31fdf (patch)
tree4f9c074cf3b5a39c72f2cce627584f4e93a221d7 /Source/CPack/cmCPackDebGenerator.cxx
parent00214357ba6166d829da68a65c0d50a61c663bd5 (diff)
downloadCMake-e86f44b72616ebce43dcd62d170f7ca90ff31fdf.zip
CMake-e86f44b72616ebce43dcd62d170f7ca90ff31fdf.tar.gz
CMake-e86f44b72616ebce43dcd62d170f7ca90ff31fdf.tar.bz2
cmCPackDebGenerator: Cast file mode to proper type for %o formatter
Diffstat (limited to 'Source/CPack/cmCPackDebGenerator.cxx')
-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;