diff options
| author | rillig <rillig@NetBSD.org> | 2020-09-11 04:32:39 +0000 |
|---|---|---|
| committer | rillig <rillig@NetBSD.org> | 2020-09-11 04:32:39 +0000 |
| commit | 694efd06dbd39fba2eda6fc182691f10ea6f4ae2 (patch) | |
| tree | 6f56f1461a3d6a277817ab341117464a618562a3 /usr.bin/make/suff.c | |
| parent | 1b770242cbfde180f864630d754eda5ffea24c7e (diff) | |
make(1): replace *a->b with a->b[0]
This allows the code to be read strictly from left to right. In most
places this style was already used.
Diffstat (limited to 'usr.bin/make/suff.c')
| -rw-r--r-- | usr.bin/make/suff.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/make/suff.c b/usr.bin/make/suff.c index 6ba415827b5..ebc7eb27512 100644 --- a/usr.bin/make/suff.c +++ b/usr.bin/make/suff.c @@ -1,4 +1,4 @@ -/* $NetBSD: suff.c,v 1.145 2020/09/08 05:26:21 rillig Exp $ */ +/* $NetBSD: suff.c,v 1.146 2020/09/11 04:32:39 rillig Exp $ */ /* * Copyright (c) 1988, 1989, 1990, 1993 @@ -69,14 +69,14 @@ */ #ifndef MAKE_NATIVE -static char rcsid[] = "$NetBSD: suff.c,v 1.145 2020/09/08 05:26:21 rillig Exp $"; +static char rcsid[] = "$NetBSD: suff.c,v 1.146 2020/09/11 04:32:39 rillig Exp $"; #else #include <sys/cdefs.h> #ifndef lint #if 0 static char sccsid[] = "@(#)suff.c 8.4 (Berkeley) 3/21/94"; #else -__RCSID("$NetBSD: suff.c,v 1.145 2020/09/08 05:26:21 rillig Exp $"); +__RCSID("$NetBSD: suff.c,v 1.146 2020/09/11 04:32:39 rillig Exp $"); #endif #endif /* not lint */ #endif @@ -969,7 +969,7 @@ SuffAddSrc(void *sp, void *lsp) targ = ls->s; - if ((s->flags & SUFF_NULL) && (*s->name != '\0')) { + if ((s->flags & SUFF_NULL) && s->name[0] != '\0') { /* * If the suffix has been marked as the NULL suffix, also create a Src * structure for a file with no suffix attached. Two birds, and all |
