]> git.ipfire.org Git - thirdparty/libbsd.git/commitdiff
man: Use minus signs and hyphens consistently
authorGuillem Jover <guillem@hadrons.org>
Thu, 21 Jun 2012 08:16:14 +0000 (10:16 +0200)
committerGuillem Jover <guillem@hadrons.org>
Wed, 27 Jun 2012 07:13:39 +0000 (09:13 +0200)
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.

man/flopen.3
man/pidfile.3

index 9847436e48bb3c4d1097a9597e908e0e7ebbf975..f430dc08cfb4be6d23ef11e94b0d0880d424f5fe 100644 (file)
@@ -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
index 7b2697d10dff18bfda7320b0af589320e457a6a6..e7eaf3f99caa9b43b5711d98af0ad38b34cffdd0 100644 (file)
@@ -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: