diff options
author | Karel Zak | 2018-12-10 14:26:04 +0100 |
---|---|---|
committer | Karel Zak | 2018-12-10 14:26:04 +0100 |
commit | c455cdb30d212b6488d3e9f2f663fcc1f6ad267c (patch) | |
tree | 95093d9c30cc3e113fd3e27c035f12c4b2ee1d4c /include | |
parent | libuuid: fix man page typos (diff) | |
download | kernel-qcow2-util-linux-c455cdb30d212b6488d3e9f2f663fcc1f6ad267c.tar.gz kernel-qcow2-util-linux-c455cdb30d212b6488d3e9f2f663fcc1f6ad267c.tar.xz kernel-qcow2-util-linux-c455cdb30d212b6488d3e9f2f663fcc1f6ad267c.zip |
choom: fix negative adjust score usage
It's really bad idea to use uint64_t (ul_path_write_u64(()) when write
signed number.
Addresses: https://github.com/karelzak/util-linux/issues/723
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/path.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/path.h b/include/path.h index b34aa366e..8dadef1d0 100644 --- a/include/path.h +++ b/include/path.h @@ -110,6 +110,7 @@ int ul_path_write_string(struct path_cxt *pc, const char *str, const char *path) int ul_path_writef_string(struct path_cxt *pc, const char *str, const char *path, ...) __attribute__ ((__format__ (__printf__, 3, 4))); +int ul_path_write_s64(struct path_cxt *pc, int64_t num, const char *path); int ul_path_write_u64(struct path_cxt *pc, uint64_t num, const char *path); int ul_path_writef_u64(struct path_cxt *pc, uint64_t num, const char *path, ...) __attribute__ ((__format__ (__printf__, 3, 4))); |