From 57b52f35b4078011825b46cc5cbf8fc66f35c742 Mon Sep 17 00:00:00 2001 From: Ansa89 Date: Tue, 8 Jul 2014 09:39:42 +0200 Subject: [PATCH] Use long int instead uint64_t --- build/Makefile | 8 +++++--- src/misc_tools.c | 6 +++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/build/Makefile b/build/Makefile index f1d5882..8129d70 100644 --- a/build/Makefile +++ b/build/Makefile @@ -93,7 +93,8 @@ endif all: toxic toxic: $(OBJ) - $(CC) $(CFLAGS) -o toxic $(OBJ) $(LDFLAGS) + @echo " LD $@" + @$(CC) $(CFLAGS) -o toxic $(OBJ) $(LDFLAGS) install: toxic mkdir -p $(abspath $(DESTDIR)/$(BINDIR)) @@ -117,8 +118,9 @@ install: toxic done %.o: $(SRC_DIR)/%.c - $(CC) $(CFLAGS) -o $*.o -c $(SRC_DIR)/$*.c - $(CC) -MM $(CFLAGS) $(SRC_DIR)/$*.c > $*.d + @echo " CC $@" + @$(CC) $(CFLAGS) -o $*.o -c $(SRC_DIR)/$*.c + @$(CC) -MM $(CFLAGS) $(SRC_DIR)/$*.c > $*.d clean: rm -rf *.d *.o toxic diff --git a/src/misc_tools.c b/src/misc_tools.c index fe98fe6..df81a0f 100644 --- a/src/misc_tools.c +++ b/src/misc_tools.c @@ -73,9 +73,9 @@ void get_elapsed_time_str(char *buf, int bufsize, uint64_t secs) if (!secs) return; - uint64_t seconds = secs % 60; - uint64_t minutes = (secs % 3600) / 60; - uint64_t hours = secs / 3600; + long int seconds = secs % 60; + long int minutes = (secs % 3600) / 60; + long int hours = secs / 3600; if (!minutes && !hours) snprintf(buf, bufsize, "%.2ld", seconds);