diff options
author | Lars Wirzenius <liw@liw.fi> | 2013-02-27 21:20:55 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2013-02-27 21:20:55 +0000 |
commit | 017160c969b5b9d9ced08a8b45335eec1abafa57 (patch) | |
tree | 3fe9624181ae0b2b68201e9bd6e9bc9b08627452 /_obnammodule.c | |
parent | d1521cfa06653251896130388a7c896f7cf02079 (diff) | |
download | obnam-017160c969b5b9d9ced08a8b45335eec1abafa57.tar.gz |
Return unsigned stat fields as unsigned, not signed
Diffstat (limited to '_obnammodule.c')
-rw-r--r-- | _obnammodule.c | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/_obnammodule.c b/_obnammodule.c index 55d8eef0..c60e4d07 100644 --- a/_obnammodule.c +++ b/_obnammodule.c @@ -110,24 +110,25 @@ lstat_wrapper(PyObject *self, PyObject *args) ret = lstat(filename, &st); if (ret == -1) ret = errno; - return Py_BuildValue("iLLLLLLLLLLLLLLLL", + + return Py_BuildValue("iKKKKKKKLLLLKLKLK", ret, - (long long) st.st_dev, - (long long) st.st_ino, - (long long) st.st_mode, - (long long) st.st_nlink, - (long long) st.st_uid, - (long long) st.st_gid, - (long long) st.st_rdev, + (unsigned long long) st.st_dev, + (unsigned long long) st.st_ino, + (unsigned long long) st.st_mode, + (unsigned long long) st.st_nlink, + (unsigned long long) st.st_uid, + (unsigned long long) st.st_gid, + (unsigned long long) st.st_rdev, (long long) st.st_size, (long long) st.st_blksize, (long long) st.st_blocks, (long long) st.st_atim.tv_sec, - (long long) st.st_atim.tv_nsec, + (unsigned long long) st.st_atim.tv_nsec, (long long) st.st_mtim.tv_sec, - (long long) st.st_mtim.tv_nsec, + (unsigned long long) st.st_mtim.tv_nsec, (long long) st.st_ctim.tv_sec, - (long long) st.st_ctim.tv_nsec); + (unsigned long long) st.st_ctim.tv_nsec); } |