Moved common code to util.[ch] instead of having it duplicated in sws.c

and sockfilt.c. For good-to-have functions for the servers written in C.
This commit is contained in:
Daniel Stenberg
2005-04-30 23:30:55 +00:00
parent 41e6292e7b
commit 23da55a9f1
5 changed files with 136 additions and 66 deletions

View File

@@ -29,10 +29,10 @@ noinst_PROGRAMS = sws getpart sockfilt
useful = getpart.c getpart.h $(top_srcdir)/lib/strequal.c \
$(top_srcdir)/lib/base64.c $(top_srcdir)/lib/mprintf.c \
$(top_srcdir)/lib/memdebug.c
$(top_srcdir)/lib/memdebug.c $(top_srcdir)/lib/timeval.c
sws_SOURCES= sws.c $(useful)
sockfilt_SOURCES = sockfilt.c $(useful) $(top_srcdir)/lib/inet_pton.c
sws_SOURCES= sws.c util.c $(useful)
sockfilt_SOURCES = sockfilt.c util.c $(useful) $(top_srcdir)/lib/inet_pton.c
getpart_SOURCES= testpart.c $(useful)
extra_DIST = base64.pl