move logger() prototype to gmid.h and delete logger.h

This commit is contained in:
Omar Polo 2023-06-08 17:03:13 +00:00
parent 797c4609a9
commit cbb7f9fc28
3 changed files with 6 additions and 20 deletions

View File

@ -33,7 +33,7 @@ GG_SRCS = gg.c iri.c utf8.c
GG_OBJS = ${GG_SRCS:.c=.o} ${COBJS}
SRCS = gmid.h log.h logger.h parse.y proc.h \
SRCS = gmid.h log.h parse.y proc.h \
${GMID_SRCS} ${GE_SRCS} ${GG_SRCS}
DISTNAME = gmid-${VERSION}
@ -111,8 +111,8 @@ uninstall:
DISTFILES = .cirrus.yml .dockerignore .gitignore ChangeLog LICENSE \
Makefile README.md config.c configure configure.local.example \
dirs.c fcgi.c ge.1 ge.c gg.1 gg.c gmid.8 gmid.c gmid.conf.5 \
gmid.h iri.c log.c log.h logger.c logger.h mime.c parse.y \
proxy.c puny.c sandbox.c server.c utf8.c utils.c y.tab.c
gmid.h iri.c log.c log.h logger.c mime.c parse.y proxy.c \
puny.c sandbox.c server.c utf8.c utils.c y.tab.c
dist: ${DISTNAME}.sha256

3
gmid.h
View File

@ -404,6 +404,9 @@ int serialize_iri(struct iri*, char*, size_t);
int encode_path(char *, size_t, const char *);
char *pct_decode_str(char *);
/* logger.h */
void logger(struct privsep *, struct privsep_proc *);
/* proxy.c */
int proxy_init(struct client *);

View File

@ -1,17 +0,0 @@
/*
* Copyright (c) 2023 Omar Polo <op@omarpolo.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
void logger(struct privsep *, struct privsep_proc *);