diff options
| author | 2010-01-12 19:49:40 +0100 | |
|---|---|---|
| committer | 2010-01-12 19:49:40 +0100 | |
| commit | 04e1f74afe0efe4d09affed9b9fee08847b78ab9 (patch) | |
| tree | 92446cc5ad9e4a4d0b7e428f5d8b104afa224000 /src/debug.c | |
| parent | 342f4e929888c0aaa088e39fb98a74957bf45fa7 (diff) | |
| download | libimobiledevice-04e1f74afe0efe4d09affed9b9fee08847b78ab9.tar.gz libimobiledevice-04e1f74afe0efe4d09affed9b9fee08847b78ab9.tar.bz2 | |
Fix return type of vasprintf, asprintf to silence warnings
Diffstat (limited to 'src/debug.c')
| -rw-r--r-- | src/debug.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/debug.c b/src/debug.c index 1f9aff1..cf93e01 100644 --- a/src/debug.c +++ b/src/debug.c | |||
| @@ -53,7 +53,7 @@ static void debug_print_line(const char *func, const char *file, int line, const | |||
| 53 | strftime(str_time, 254, "%H:%M:%S", localtime (&the_time)); | 53 | strftime(str_time, 254, "%H:%M:%S", localtime (&the_time)); |
| 54 | 54 | ||
| 55 | /* generate header text */ | 55 | /* generate header text */ |
| 56 | asprintf(&header, "%s %s %s:%d", str_time, file, func, line); | 56 | (void)asprintf(&header, "%s %s %s:%d", str_time, file, func, line); |
| 57 | free (str_time); | 57 | free (str_time); |
| 58 | 58 | ||
| 59 | /* always in light green */ | 59 | /* always in light green */ |
| @@ -79,7 +79,7 @@ inline void debug_info_real(const char *func, const char *file, int line, const | |||
| 79 | 79 | ||
| 80 | /* run the real fprintf */ | 80 | /* run the real fprintf */ |
| 81 | va_start(args, format); | 81 | va_start(args, format); |
| 82 | vasprintf(&buffer, format, args); | 82 | (void)vasprintf(&buffer, format, args); |
| 83 | va_end(args); | 83 | va_end(args); |
| 84 | 84 | ||
| 85 | debug_print_line(func, file, line, buffer); | 85 | debug_print_line(func, file, line, buffer); |
