Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 #include <arpa/inet.h> | 1 #include <arpa/inet.h> |
| 2 #include <stdio.h> | 2 #include <stdio.h> |
| 3 | 3 |
| 4 char *inet_ntoa(struct in_addr in) | 4 char* inet_ntoa(struct in_addr in) { |
| 5 { | 5 static char buf[16]; |
| 6 » static char buf[16]; | 6 unsigned char* a = (void*)∈ |
| 7 » unsigned char *a = (void *)∈ | 7 snprintf(buf, sizeof buf, "%d.%d.%d.%d", a[0], a[1], a[2], a[3]); |
| 8 » snprintf(buf, sizeof buf, "%d.%d.%d.%d", a[0], a[1], a[2], a[3]); | 8 return buf; |
| 9 » return buf; | |
| 10 } | 9 } |
| OLD | NEW |