Updated code formatting under src/geoip1.c.
@@ -93,11 +93,13 @@ init_geoip (void) {
}
static char ip4to6_out_buffer[17];
-static char * ip4to6(const char * ipv4) {
+static char *
+ip4to6 (const char *ipv4) {
unsigned int b[4];
int n = sscanf (ipv4, "%u.%u.%u.%u", b, b + 1, b + 2, b + 3);
if (n == 4) {
- snprintf(ip4to6_out_buffer, sizeof(ip4to6_out_buffer), "::ffff:%02x%02x:%02x%02x", b[0], b[1], b[2], b[3]);
+ snprintf (ip4to6_out_buffer, sizeof (ip4to6_out_buffer), "::ffff:%02x%02x:%02x%02x", b[0],
+ b[1], b[2], b[3]);
return ip4to6_out_buffer;
}
return NULL;
