equal
deleted
inserted
replaced
5 #include <stdarg.h> |
5 #include <stdarg.h> |
6 #include <stdlib.h> |
6 #include <stdlib.h> |
7 |
7 |
8 char* flib_format_ip(uint32_t numip) { |
8 char* flib_format_ip(uint32_t numip) { |
9 static char ip[16]; |
9 static char ip[16]; |
10 snprintf(ip, 16, "%u.%u.%u.%u", numip>>24, (numip>>16)&0xff, (numip>>8)&0xff, numip&0xff); |
10 snprintf(ip, 16, "%u.%u.%u.%u", (unsigned)(numip>>24), (unsigned)((numip>>16)&0xff), (unsigned)((numip>>8)&0xff), (unsigned)(numip&0xff)); |
11 return ip; |
11 return ip; |
12 } |
12 } |
13 |
13 |
14 static void log_time(FILE *file) { |
14 static void log_time(FILE *file) { |
15 time_t timer; |
15 time_t timer; |