From 0aa5c9ce4a0cbb257bfe176ff6ff73df21fca20b Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Mon, 20 Jan 2020 23:45:25 +1300 Subject: Realised there was no need for a separate header --- Makefile | 6 ++---- crypt.c | 10 +++++++++- crypt.h | 9 --------- 3 files changed, 11 insertions(+), 14 deletions(-) delete mode 100644 crypt.h diff --git a/Makefile b/Makefile index b5ddaf2..078e40b 100644 --- a/Makefile +++ b/Makefile @@ -4,13 +4,11 @@ PREFIX = /usr/local #CC = gcc #CFLAGS = -Wall -Werror -Wextra -ansi -pedantic LDFLAGS = -lcrypt -ALL = crypt -all: $(ALL) -crypt: crypt.c crypt.h +all: crypt install: mkdir -p -- $(PREFIX)/bin cp -- crypt $(PREFIX)/bin mkdir -p -- $(PREFIX)/share/man/man1 cp -- crypt.1 $(PREFIX)/share/man/man1 clean distclean: - rm -f -- $(ALL) + rm -f -- crypt diff --git a/crypt.c b/crypt.c index 7ba42ef..4c9f0fb 100644 --- a/crypt.c +++ b/crypt.c @@ -1,4 +1,12 @@ -#include "crypt.h" +#define _XOPEN_SOURCE +#include +#include +#include +#include /* strerror(3) */ +#include /* crypt(3) */ + +void error(char *); +void usage(FILE *, int); int main (int argc, char **argv) { diff --git a/crypt.h b/crypt.h deleted file mode 100644 index 0a25c0d..0000000 --- a/crypt.h +++ /dev/null @@ -1,9 +0,0 @@ -#define _XOPEN_SOURCE -#include -#include -#include -#include /* strerror(3) */ -#include /* crypt(3) */ - -void error(char *); -void usage(FILE *, int); -- cgit v1.2.3 From 9ab0ecd0d10b3d9cb36a53a93558807c21298fd9 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Mon, 20 Jan 2020 23:48:02 +1300 Subject: Bump VERSION --- VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 26aaba0..227cea2 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.2.0 +2.0.0 -- cgit v1.2.3