commit cbb7f9fc28abffd18642b83eeb8fe22e8931540f from: Omar Polo date: Thu Jun 08 17:03:13 2023 UTC move logger() prototype to gmid.h and delete logger.h commit - 797c4609a9b9923e8d15413f7412cf2bf4bb6ce5 commit + cbb7f9fc28abffd18642b83eeb8fe22e8931540f blob - 2b46883eed82af3b485752ad85ddab05ae2dbedc blob + 6872ae738dce80e2acf9f027ced5244c93ddcf34 --- Makefile +++ Makefile @@ -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 blob - 2078a2c213e9096a0da012e722aff9f29f4a2d16 blob + 4001c72a05e7e9d3f2942ceabe1f56826dcbf7fe --- gmid.h +++ gmid.h @@ -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 *); blob - 59b92bcd28714fed26b71a44dfff682222e65bd9 (mode 644) blob + /dev/null --- logger.h +++ /dev/null @@ -1,17 +0,0 @@ -/* - * Copyright (c) 2023 Omar Polo - * - * 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 *);