From b4e3891a8c6e861a606852fb9f3e3e0adee91b7a Mon Sep 17 00:00:00 2001 From: dschmenk Date: Fri, 31 May 2013 16:09:10 -0700 Subject: [PATCH] add Makefile and remove compiler warnings --- src/Makefile | 9 +++++++++ src/a2pid.c | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100755 src/Makefile diff --git a/src/Makefile b/src/Makefile new file mode 100755 index 0000000..b50fb7d --- /dev/null +++ b/src/Makefile @@ -0,0 +1,9 @@ +BIN=a2pid a2mon dskread dskwrite + +all: $(BIN) + +clean: + rm $(BIN) + +install: + cp $(BIN) /usr/local/bin diff --git a/src/a2pid.c b/src/a2pid.c index 821b46d..59aeb59 100755 --- a/src/a2pid.c +++ b/src/a2pid.c @@ -413,7 +413,7 @@ int writeword(int fd, int word, char ack) void prlog(char *str) { if (!isdaemon) - printf(str); + puts(str); } struct a2request *addreq(int a2fd, int reqfd, int type, int addr, int count, char *buffer) {