add Makefile and remove compiler warnings

This commit is contained in:
dschmenk 2013-05-31 16:09:10 -07:00
parent c3aa33d95f
commit b4e3891a8c
2 changed files with 10 additions and 1 deletions

9
src/Makefile Executable file
View File

@ -0,0 +1,9 @@
BIN=a2pid a2mon dskread dskwrite
all: $(BIN)
clean:
rm $(BIN)
install:
cp $(BIN) /usr/local/bin

View File

@ -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)
{