Indentation fixed
[umurmur.git] / src / log.c
index 17bbe14a56e804bd9aea4b9b68475e06a3cbc088..31f96c01d97959db3229deb6d1d4cc8da80c491c 100644 (file)
--- a/src/log.c
+++ b/src/log.c
@@ -182,7 +182,7 @@ void Log_info_client(client_t *client, const char *logstring, ...)
        va_list argp;
        char buf[STRSIZE + 1];
        int offset = 0;
-  uint16_t port;
+       uint16_t port;
 
        if (termprint || logfile)
                offset = sprintf(buf, "INFO: ");
@@ -191,16 +191,16 @@ void Log_info_client(client_t *client, const char *logstring, ...)
        offset += vsnprintf(&buf[offset], STRSIZE - offset, logstring, argp);
        va_end(argp);
 
-  if(client->remote_tcp.ss_family == AF_INET)
-    port = ntohs(((struct sockaddr_in*)&client->remote_tcp)->sin_port);
-  else
-    port = ntohs(((struct sockaddr_in6*)&client->remote_tcp)->sin6_port);
+       if(client->remote_tcp.ss_family == AF_INET)
+               port = ntohs(((struct sockaddr_in*)&client->remote_tcp)->sin_port);
+       else
+               port = ntohs(((struct sockaddr_in6*)&client->remote_tcp)->sin6_port);
 
        offset += snprintf(&buf[offset], STRSIZE - offset, " - [%d] %s@%s:%d",
-                                          client->sessionId,
-                                          client->username == NULL ? "" : client->username,
-                                          client->addressString,
-                                          port);
+               client->sessionId,
+               client->username == NULL ? "" : client->username,
+               client->addressString,
+               port);
 
        if (termprint)
                fprintf(stderr, "%s\n", buf);