commit efc6bf445a594d555bfce6dd4487366f8dbb747e
parent 2b16b2e26bbc12ae4bf6d9637fadd5c93db1a4b9
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Mon, 10 Jul 2017 20:22:07 +0200
remove some trailing spaces and empty lines, simplify initlogging()
Signed-off-by: Christoph Lohmann <20h@r-36.net>
Diffstat:
6 files changed, 10 insertions(+), 18 deletions(-)
diff --git a/CGI b/CGI
@@ -28,8 +28,8 @@ Geomyidae will call the script like this:
When it is a plain request, the arguments will have these values:
C: /test.cgi
- -> $search = ""
- -> $arguments = ""
+ -> $search = ""
+ -> $arguments = ""
-> $host = server host
-> $port = server port
@@ -40,7 +40,7 @@ the user will be seen as following:
-> $search = »searchterm«
-> $arguments = ""
-> $host = server host
- -> $port = server port
+ -> $port = server port
When you are trying to give your script some calling arguments, the syntax
is:
diff --git a/LICENSE b/LICENSE
@@ -1,9 +1,9 @@
MIT/X Consortium License
© 2006-2011 Christoph Lohmann <20h@r-36.net>
-© 2007 Jeff Woodall <jgw@freeshell.org>
-© 2008 J. A. Neitzel <jan@v6shell.org>
-© 2010-2011 James Penketh <tamber@furryhelix.co.uk>
+© 2007 Jeff Woodall <jgw@freeshell.org>
+© 2008 J. A. Neitzel <jan@v6shell.org>
+© 2010-2011 James Penketh <tamber@furryhelix.co.uk>
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
diff --git a/README b/README
@@ -13,7 +13,7 @@ Usage:
[-u user] [-g group] [-h host] [-i IP]
-d don't fork into background
-l logfile setting this will turn on logging into logfile
- -v loglevel see below (default 7)
+ -v loglevel see below (default 7)
-b htdocs the htdocs root for serving files (default
/var/gopher)
-p port set the port where geomyidae should listen on
diff --git a/ind.c b/ind.c
@@ -113,7 +113,6 @@ gettype(char *filename)
void
freeelem(Elems *e)
{
-
if(e != nil) {
if(e->e != nil) {
for(;e->num > 0; e->num--)
@@ -129,7 +128,6 @@ freeelem(Elems *e)
void
freeindex(Indexs *i)
{
-
if(i != nil) {
if(i->n != nil) {
for(;i->num > 0; i->num--)
@@ -203,7 +201,6 @@ getadv(char *str)
void
addindexs(Indexs *idx, Elems *el)
{
-
idx->num++;
idx->n = xrealloc(idx->n, sizeof(Elems) * idx->num);
idx->n[idx->num - 1] = el;
@@ -269,17 +266,12 @@ printelem(int fd, Elems *el, char *addr, char *port)
int
initlogging(char *logf)
{
- int fd;
-
- fd = open(logf, O_APPEND | O_WRONLY | O_CREAT, 0644);
-
- return fd;
+ return open(logf, O_APPEND | O_WRONLY | O_CREAT, 0644);
}
void
stoplogging(int fd)
{
-
close(fd);
return;
diff --git a/rc.d/Archlinux.conf.d b/rc.d/Archlinux.conf.d
@@ -1,4 +1,4 @@
#
-# Parameters to be passed to geomyidae
+# Parameters to be passed to geomyidae
#
GEOMYIDAE_ARGS="-u nobody -g nobody -b /srv/gopher -o 70 -l /var/log/geomyidae.log -h localhost"
diff --git a/rc.d/Gentoo.conf.d b/rc.d/Gentoo.conf.d
@@ -1,5 +1,5 @@
#
-# Parameters to be passed to geomyidae
+# Parameters to be passed to geomyidae
#
GEOMYIDAE_ARGS="-d -u gopherd -g gopherd -b /var/gopher -o 70 -l /var/log/geomyidae.log -h localhost"