From owner-svn-src-head@FreeBSD.ORG Sat Oct 20 10:16:55 2012 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D3C0B7D9; Sat, 20 Oct 2012 10:16:55 +0000 (UTC) (envelope-from uqs@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id B9ACB8FC0A; Sat, 20 Oct 2012 10:16:55 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q9KAGtBA004945; Sat, 20 Oct 2012 10:16:55 GMT (envelope-from uqs@svn.freebsd.org) Received: (from uqs@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q9KAGtjV004943; Sat, 20 Oct 2012 10:16:55 GMT (envelope-from uqs@svn.freebsd.org) Message-Id: <201210201016.q9KAGtjV004943@svn.freebsd.org> From: Ulrich Spoerlein Date: Sat, 20 Oct 2012 10:16:55 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r241775 - head/contrib/mdocml X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Oct 2012 10:16:55 -0000 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);