commit d8c5065539a42a072e92a98bc90c237787d9769c
parent c1b42e7dc0c955838b350c4b49236ac4ddefb32a
Author: Frederic Cambus <fred@statdns.com>
Date: Sun, 17 Sep 2017 22:58:08 +0200
Use type off_t for results struct member fileSize
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/logswan.c b/src/logswan.c
@@ -5,7 +5,7 @@
/* https://www.logswan.org */
/* */
/* Created: 2015-05-31 */
-/* Last Updated: 2017-02-14 */
+/* Last Updated: 2017-09-17 */
/* */
/* Logswan is released under the BSD 2-Clause license. */
/* See LICENSE file for details. */
@@ -148,7 +148,7 @@ main(int argc, char *argv[]) {
}
results.fileName = intputFile;
- results.fileSize = (uint64_t)logFileStat.st_size;
+ results.fileSize = logFileStat.st_size;
while (fgets(lineBuffer, LINE_LENGTH_MAX, logFile)) {
/* Parse and tokenize line */
diff --git a/src/output.h b/src/output.h
@@ -20,7 +20,7 @@
struct results {
char *fileName;
- uint64_t fileSize;
+ off_t fileSize;
uint64_t invalidLines;
uint64_t processedLines;
uint64_t bandwidth;