summaryrefslogtreecommitdiffstats
path: root/contrib/mdocml
diff options
context:
space:
mode:
authoruqs <uqs@FreeBSD.org>2012-10-20 10:16:55 +0000
committeruqs <uqs@FreeBSD.org>2012-10-20 10:16:55 +0000
commitff852f67bd163fdd634ba77c0927e433933e3592 (patch)
tree194f53d97378fa3931e1889e0a00e59324df1de7 /contrib/mdocml
parentaa4a438187bbd1a52ff79d31b1d61788ea5ba259 (diff)
downloadFreeBSD-src-ff852f67bd163fdd634ba77c0927e433933e3592.zip
FreeBSD-src-ff852f67bd163fdd634ba77c0927e433933e3592.tar.gz
strcmp(3) will suffice here, also follow the style of the remaining file more closely.
Prodded by: ed
Diffstat (limited to 'contrib/mdocml')
-rw-r--r--contrib/mdocml/mdoc_validate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/mdocml/mdoc_validate.c b/contrib/mdocml/mdoc_validate.c
index 91f9483..0a1fce2 100644
--- a/contrib/mdocml/mdoc_validate.c
+++ b/contrib/mdocml/mdoc_validate.c
@@ -2234,7 +2234,7 @@ post_os(POST_ARGS)
mdoc_nmsg(mdoc, n, MANDOCERR_MEM);
return(0);
}
- if (strncmp(utsname.sysname, "FreeBSD", sizeof("FreeBSD")) == 0)
+ if (0 == strcmp(utsname.sysname, "FreeBSD"))
strtok(utsname.release, "-");
if (strlcat(buf, utsname.release, BUFSIZ) >= BUFSIZ) {
mdoc_nmsg(mdoc, n, MANDOCERR_MEM);
OpenPOWER on IntegriCloud