~bpv/finger

cdc3c1df5d32697b7a2a5976f913153adb6251fd — Bryce Vandegrift 3 months ago 47a1752
Add license info and optimize

Added license info to individual files and
added -Os optimization to config.mk
6 files changed, 9 insertions(+), 1 deletions(-)

M Makefile
M config.mk
M finger.c
M fingerd.c
M util.c
M util.h
M Makefile => Makefile +3 -0
@@ 1,3 1,6 @@
# finger and fingerd - minimal finger client and server
# See LICENSE file for copyright and license details.

include config.mk

REQ = util

M config.mk => config.mk +2 -1
@@ 7,7 7,8 @@ MANPREFIX = ${PREFIX}/share/man

# flags
CPPFLAGS = -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -DVERSION=\"${VERSION}\"
CFLAGS = -std=c89 -pedantic -Wall -Wextra -g ${CPPFLAGS}
#CFLAGS = -std=c89 -pedantic -Wall -Wextra -g ${CPPFLAGS}
CFLAGS = -std=c89 -pedantic -Wall -Wextra -Os ${CPPFLAGS}

# compiler and linker
CC = cc

M finger.c => finger.c +1 -0
@@ 1,3 1,4 @@
/* See LICENSE file for copyright and license details. */
#include <netdb.h>
#include <netinet/in.h>
#include <string.h>

M fingerd.c => fingerd.c +1 -0
@@ 1,3 1,4 @@
/* See LICENSE file for copyright and license details. */
#include <errno.h>
#include <grp.h>
#include <netdb.h>

M util.c => util.c +1 -0
@@ 1,3 1,4 @@
/* See LICENSE file for copyright and license details. */
#include <ctype.h>
#include <stdarg.h>
#include <string.h>

M util.h => util.h +1 -0
@@ 1,2 1,3 @@
/* See LICENSE file for copyright and license details. */
void die(const char *fmt, ...);
void trim(char *s);