From 87b121bb794a1fa8b3cd0592b348fe6f880475bf Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Tue, 24 Jul 2018 09:22:59 +0800 Subject: [PATCH] disklabel64(8): Remove an obsolete comment Also consistently use the locally defined streq() function. --- sbin/disklabel64/disklabel64.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sbin/disklabel64/disklabel64.c b/sbin/disklabel64/disklabel64.c index a9eb5f531c..3b9daef5e8 100644 --- a/sbin/disklabel64/disklabel64.c +++ b/sbin/disklabel64/disklabel64.c @@ -346,15 +346,12 @@ makelabel(const char *type, const char *name, struct disklabel64 *lp) { struct disklabel64 *dp; - if (strcmp(type, "auto") == 0) + if (streq(type, "auto")) dp = getvirginlabel(); else errx(1, "no disktab(5) support yet; only 'auto' allowed"); *lp = *dp; - /* - * NOTE: boot control files may no longer be specified in disktab. - */ if (name) strlcpy((char *)lp->d_packname, name, sizeof(lp->d_packname)); } -- 2.41.0