diff options
author | 2009-12-23 22:30:17 +0000 | |
---|---|---|
committer | 2009-12-23 22:30:17 +0000 | |
commit | aa2d850a73514fbc953b9870d29969cfb4f92948 (patch) | |
tree | 1fbb3f2227d6a4ab8e27d8e6aa708d34426aa3d8 /usr.bin/mandoc/man.c | |
parent | - add and enable uthum (diff) | |
download | wireguard-openbsd-aa2d850a73514fbc953b9870d29969cfb4f92948.tar.xz wireguard-openbsd-aa2d850a73514fbc953b9870d29969cfb4f92948.zip |
sync to 1.9.13: minor fixes:
correctness/functionality:
- bugfix: properly ignore lines with only a dot in -man
- bugfix: .Bl -ohang doesn't allow -width, warn about this
- improve date string handling by new function mandoc_a2time
- some HTML improvements
- significant documentation additions in man.7 and mdoc.7
portability:
- replace __dead by __attribute__((noreturn))
- bugfix: correct .Dx rendering
- some more library names for NetBSD
simplicity:
- replace hand-rolled putchar(3)-loops by fwrite(3)
- replace single-character printf(3) by putchar(3)
Diffstat (limited to 'usr.bin/mandoc/man.c')
-rw-r--r-- | usr.bin/mandoc/man.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/mandoc/man.c b/usr.bin/mandoc/man.c index eff62501e24..ebbf4ccdb35 100644 --- a/usr.bin/mandoc/man.c +++ b/usr.bin/mandoc/man.c @@ -1,4 +1,4 @@ -/* $Id: man.c,v 1.16 2009/12/22 23:58:00 schwarze Exp $ */ +/* $Id: man.c,v 1.17 2009/12/23 22:30:17 schwarze Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -450,8 +450,8 @@ man_pmacro(struct man *m, int ln, char *buf) fl = m->flags; - if (0 == buf[1]) - goto out; + if ('\0' == buf[1]) + return(1); i = 1; @@ -480,7 +480,7 @@ man_pmacro(struct man *m, int ln, char *buf) return(man_perr(m, ln, i, WNPRINT)); } - mac[j] = 0; + mac[j] = '\0'; if (j == 4 || j < 1) { if ( ! (MAN_IGN_MACRO & m->pflags)) { |