summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2023-07-05 13:00:57 +0200
committerGravatar Nikias Bassen2023-07-05 13:00:57 +0200
commit8163ca0c237da92a2c1ab31eae2480d1e76a9d01 (patch)
tree4900f45f081988ab35af2984cc758f621846621f /common
parente57b6e7163277c6a63f22a7e2942cf666cf71a80 (diff)
downloadlibimobiledevice-8163ca0c237da92a2c1ab31eae2480d1e76a9d01.tar.gz
libimobiledevice-8163ca0c237da92a2c1ab31eae2480d1e76a9d01.tar.bz2
Silence (v)asprintf related compiler warnings
Diffstat (limited to 'common')
-rw-r--r--common/debug.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/debug.c b/common/debug.c
index 6212e71..3492eaa 100644
--- a/common/debug.c
+++ b/common/debug.c
@@ -60,7 +60,7 @@ static void debug_print_line(const char *func, const char *file, int line, const
strftime(str_time, 254, "%H:%M:%S", localtime (&the_time));
/* generate header text */
- (void)asprintf(&header, "%s %s:%d %s()", str_time, file, line, func);
+ if(asprintf(&header, "%s %s:%d %s()", str_time, file, line, func)<0){}
free (str_time);
/* trim ending newlines */
@@ -86,7 +86,7 @@ void debug_info_real(const char *func, const char *file, int line, const char *f
/* run the real fprintf */
va_start(args, format);
- (void)vasprintf(&buffer, format, args);
+ if(vasprintf(&buffer, format, args)<0){}
va_end(args);
debug_print_line(func, file, line, buffer);