commit 93e3931d6605c0851387973079ff11babf7f719a
parent 34c64dd6c6a3312af4de44bb46de297c9e1b53e8
Author: Frederic Cambus <fcambus@users.sourceforge.net>
Date: Sun, 19 Jul 2015 15:28:12 +0200
Reformatting source files
Diffstat:
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/logswan.c b/src/logswan.c
@@ -89,8 +89,8 @@ int main (int argc, char *argv[]) {
/* Initializing GeoIP */
geoip = GeoIP_open("GeoIP.dat", GEOIP_MEMORY_CACHE);
- geoipv6 = GeoIP_open("GeoIPv6.dat", GEOIP_MEMORY_CACHE);
-
+ geoipv6 = GeoIP_open("GeoIPv6.dat", GEOIP_MEMORY_CACHE);
+
/* Get log file size */
stat(argv[1], &logFileSize);
results.fileSize = (uint64_t)logFileSize.st_size;
@@ -155,7 +155,7 @@ int main (int argc, char *argv[]) {
}
/* Parse request */
- parseRequest(&parsedRequest, parsedLine.resource);
+ parseRequest(&parsedRequest, parsedLine.resource);
for (int loop = 0; loop<9; loop++) {
if (!strcmp(methods[loop], parsedRequest.method)) {
@@ -225,8 +225,8 @@ int main (int argc, char *argv[]) {
GeoIP_delete(geoip);
GeoIP_delete(geoipv6);
- hll_destroy(&uniqueIPv4);
- hll_destroy(&uniqueIPv6);
+ hll_destroy(&uniqueIPv4);
+ hll_destroy(&uniqueIPv6);
return EXIT_SUCCESS;
}
diff --git a/src/parse.c b/src/parse.c
@@ -49,6 +49,6 @@ void parseLine(struct logLine* parsedLine, char *lineBuffer) {
}
void parseRequest(struct request* parsedRequest, char *request) {
- parsedRequest->protocol = strrchr(request, ' ') + 1;
+ parsedRequest->protocol = strrchr(request, ' ') + 1;
parsedRequest->method = strtok(request, " ");
}