Date: Sat, 20 Oct 2012 10:16:55 +0000 (UTC) From: Ulrich Spoerlein <uqs@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r241775 - head/contrib/mdocml Message-ID: <201210201016.q9KAGtjV004943@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: uqs Date: Sat Oct 20 10:16:55 2012 New Revision: 241775 URL: http://svn.freebsd.org/changeset/base/241775 Log: strcmp(3) will suffice here, also follow the style of the remaining file more closely. Prodded by: ed Modified: head/contrib/mdocml/mdoc_validate.c Modified: head/contrib/mdocml/mdoc_validate.c ============================================================================== --- head/contrib/mdocml/mdoc_validate.c Sat Oct 20 10:06:38 2012 (r241774) +++ head/contrib/mdocml/mdoc_validate.c Sat Oct 20 10:16:55 2012 (r241775) @@ -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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201210201016.q9KAGtjV004943>