diff options
author | Martin Szulecki | 2013-05-23 20:17:13 +0200 |
---|---|---|
committer | Martin Szulecki | 2013-05-23 20:17:13 +0200 |
commit | cfa1eb9f7d472ad0248e60000133b8f23a5f8125 (patch) | |
tree | 925900325315a7e9243afdefc92b4bbb7653d425 /common | |
parent | b1c41365ef0dbf294b12b691d48d6988e578d66d (diff) | |
download | libimobiledevice-cfa1eb9f7d472ad0248e60000133b8f23a5f8125.tar.gz libimobiledevice-cfa1eb9f7d472ad0248e60000133b8f23a5f8125.tar.bz2 |
Silence compiler warnings for win32 builds
Diffstat (limited to 'common')
-rw-r--r-- | common/debug.c | 2 | ||||
-rw-r--r-- | common/userpref.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/common/debug.c b/common/debug.c index 0bb87a2..67e2fc2 100644 --- a/common/debug.c +++ b/common/debug.c @@ -116,7 +116,7 @@ inline void debug_buffer(const char *data, const int length) fprintf(stderr, " "); continue; } - fprintf(stderr, "%02hhx ", *(data + i + j)); + fprintf(stderr, "%02x ", *(data + i + j)); } fprintf(stderr, " | "); for (j = 0; j < 16; j++) { diff --git a/common/userpref.c b/common/userpref.c index 0e774b7..d363b0e 100644 --- a/common/userpref.c +++ b/common/userpref.c @@ -102,6 +102,7 @@ static char *userpref_utf16_to_utf8(wchar_t *unistr, long len, long *items_read, } #endif +#ifndef WIN32 static const char *userpref_get_tmp_dir() { const char *cdir = getenv("TMPDIR"); @@ -115,6 +116,7 @@ static const char *userpref_get_tmp_dir() return cdir; return "/tmp"; } +#endif static const char *userpref_get_config_dir() { |