summaryrefslogtreecommitdiffstats
path: root/usr.bin/make/targ.c
diff options
context:
space:
mode:
authorharti <harti@FreeBSD.org>2004-12-07 13:49:13 +0000
committerharti <harti@FreeBSD.org>2004-12-07 13:49:13 +0000
commit23620cc24f850f14c0066dcac23f3991ba1b5b25 (patch)
tree56920a7ef5b24bec1022ce1711332864a400679e /usr.bin/make/targ.c
parent9639eb3806e6d38cde75055a6f2150eb5028c844 (diff)
downloadFreeBSD-src-23620cc24f850f14c0066dcac23f3991ba1b5b25.zip
FreeBSD-src-23620cc24f850f14c0066dcac23f3991ba1b5b25.tar.gz
Typedefs of pointers to structs are evil. Make Lst and LstNode typedef of
the structs itself not of pointers to them. This will simplify constification. Checked by: diff on the object files
Diffstat (limited to 'usr.bin/make/targ.c')
-rw-r--r--usr.bin/make/targ.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/make/targ.c b/usr.bin/make/targ.c
index 3336e55..b10180d 100644
--- a/usr.bin/make/targ.c
+++ b/usr.bin/make/targ.c
@@ -88,8 +88,8 @@ __FBSDID("$FreeBSD$");
#include "hash.h"
#include "dir.h"
-static Lst allTargets; /* the list of all targets found so far */
-static Lst allGNs; /* List of all the GNodes */
+static Lst *allTargets; /* the list of all targets found so far */
+static Lst *allGNs; /* List of all the GNodes */
static Hash_Table targets; /* a hash table of same */
#define HTSIZE 191 /* initial size of hash table */
@@ -276,11 +276,11 @@ Targ_FindNode(char *name, int flags)
* an error message will be printed for each name which can't be found.
* -----------------------------------------------------------------------
*/
-Lst
-Targ_FindList(Lst names, int flags)
+Lst *
+Targ_FindList(Lst *names, int flags)
{
- Lst nodes; /* result list */
- LstNode ln; /* name list element */
+ Lst *nodes; /* result list */
+ LstNode *ln; /* name list element */
GNode *gn; /* node in tLn */
char *name;
OpenPOWER on IntegriCloud