om

om - the most recently modified file in a directory
git clone git://git.larryhynes.net/om
Log | Files | Refs | README | LICENSE

commit 8c017e96539b85c470043ad41134f4afbccfd8ba
parent 30e9bd5eb1bd1c8863f88e73a405c23d845d31c7
Author: Larry Hynes <larry@larryhynes.com>
Date:   Mon, 10 Jul 2017 23:45:02 +0100

Tidy up use of compat.h

Diffstat:
Makefile | 2+-
om.c | 3+--
2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile @@ -3,7 +3,7 @@ CFLAGS = -Wall -Wextra -pedantic -O2 BINDIR=/usr/local/bin MANDIR=/usr/local/share/man/man1 -OBJS = om.o +OBJS = strlcat.o strlcpy.o om.o om: $(OBJS) $(CC) $(CFLAGS) -o om $(OBJS) diff --git a/om.c b/om.c @@ -7,8 +7,7 @@ #include <stdlib.h> #include <string.h> -#include "strlcat.c" -#include "strlcpy.c" +#include "compat.h" char *dir; char buf[PATH_MAX];