From: Guillem Jover Date: Thu, 21 Jun 2012 08:16:14 +0000 (+0200) Subject: man: Use minus signs and hyphens consistently X-Git-Tag: 0.4.2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=444bd1fbb8f53047b1ee2b69dc4a8eb65537bc68;p=thirdparty%2Flibbsd.git man: Use minus signs and hyphens consistently Any string that can be copy & pasted into a terminal, for example, needs to correctly use minus signs (escaped dashes), instead of the default hyphen. --- diff --git a/man/flopen.3 b/man/flopen.3 index 9847436..f430dc0 100644 --- a/man/flopen.3 +++ b/man/flopen.3 @@ -84,7 +84,7 @@ includes If successful, .Fn flopen returns a valid file descriptor. -Otherwise, it returns -1, and sets +Otherwise, it returns \-1, and sets .Va errno as described in .Xr flock 2 diff --git a/man/pidfile.3 b/man/pidfile.3 index 7b2697d..e7eaf3f 100644 --- a/man/pidfile.3 +++ b/man/pidfile.3 @@ -126,7 +126,7 @@ if (pfh == NULL) { warn("Cannot open or create pidfile"); } -if (daemon(0, 0) == -1) { +if (daemon(0, 0) == \-1) { warn("Cannot daemonize"); pidfile_remove(pfh); exit(EXIT_FAILURE); @@ -138,7 +138,7 @@ for (;;) { /* Do work. */ childpid = fork(); switch (childpid) { - case -1: + case \-1: syslog(LOG_ERR, "Cannot fork(): %s.", strerror(errno)); break; case 0: