diff options
| author | 2011-09-03 02:10:48 +0200 | |
|---|---|---|
| committer | 2012-03-18 20:40:54 +0100 | |
| commit | dcb85727c3649c254c985d840aa2efb36f727872 (patch) | |
| tree | 0f6f551b70bd845f57d5a044915e617a1bd40ac6 /src/debug.c | |
| parent | 6a83ef58a1032e3b336587e2f3a19659ae325c25 (diff) | |
| download | libimobiledevice-dcb85727c3649c254c985d840aa2efb36f727872.tar.gz libimobiledevice-dcb85727c3649c254c985d840aa2efb36f727872.tar.bz2 | |
Completely remove glib dependency.
Diffstat (limited to 'src/debug.c')
| -rw-r--r-- | src/debug.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/debug.c b/src/debug.c index 26a9678..ece2b1d 100644 --- a/src/debug.c +++ b/src/debug.c | |||
| @@ -29,6 +29,7 @@ | |||
| 29 | #include <stdio.h> | 29 | #include <stdio.h> |
| 30 | #include <stdint.h> | 30 | #include <stdint.h> |
| 31 | #include <stdlib.h> | 31 | #include <stdlib.h> |
| 32 | #include <time.h> | ||
| 32 | 33 | ||
| 33 | #include "debug.h" | 34 | #include "debug.h" |
| 34 | #include "libimobiledevice/libimobiledevice.h" | 35 | #include "libimobiledevice/libimobiledevice.h" |
| @@ -54,7 +55,7 @@ static void debug_print_line(const char *func, const char *file, int line, const | |||
| 54 | time_t the_time; | 55 | time_t the_time; |
| 55 | 56 | ||
| 56 | time(&the_time); | 57 | time(&the_time); |
| 57 | str_time = g_new0 (gchar, 255); | 58 | str_time = (char*)malloc(255); |
| 58 | strftime(str_time, 254, "%H:%M:%S", localtime (&the_time)); | 59 | strftime(str_time, 254, "%H:%M:%S", localtime (&the_time)); |
| 59 | 60 | ||
| 60 | /* generate header text */ | 61 | /* generate header text */ |
