strcmp(3) will suffice here, also follow the style of the remaining file more closely.

Prodded by:	ed
This commit is contained in:
Ulrich Spörlein 2012-10-20 10:16:55 +00:00
parent cc4842a1c7
commit 0625a57d35
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=241775

View File

@ -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);