Commit 444bd1fb authored by Guillem Jover's avatar Guillem Jover

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.
parent 1d69ae1c
...@@ -84,7 +84,7 @@ includes ...@@ -84,7 +84,7 @@ includes
If successful, If successful,
.Fn flopen .Fn flopen
returns a valid file descriptor. returns a valid file descriptor.
Otherwise, it returns -1, and sets Otherwise, it returns \-1, and sets
.Va errno .Va errno
as described in as described in
.Xr flock 2 .Xr flock 2
......
...@@ -126,7 +126,7 @@ if (pfh == NULL) { ...@@ -126,7 +126,7 @@ if (pfh == NULL) {
warn("Cannot open or create pidfile"); warn("Cannot open or create pidfile");
} }
if (daemon(0, 0) == -1) { if (daemon(0, 0) == \-1) {
warn("Cannot daemonize"); warn("Cannot daemonize");
pidfile_remove(pfh); pidfile_remove(pfh);
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
...@@ -138,7 +138,7 @@ for (;;) { ...@@ -138,7 +138,7 @@ for (;;) {
/* Do work. */ /* Do work. */
childpid = fork(); childpid = fork();
switch (childpid) { switch (childpid) {
case -1: case \-1:
syslog(LOG_ERR, "Cannot fork(): %s.", strerror(errno)); syslog(LOG_ERR, "Cannot fork(): %s.", strerror(errno));
break; break;
case 0: case 0:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment