diff options
author | harti <harti@FreeBSD.org> | 2004-11-30 17:46:29 +0000 |
---|---|---|
committer | harti <harti@FreeBSD.org> | 2004-11-30 17:46:29 +0000 |
commit | ba6eb9dcb908ffe7a797968e8a9b7dff037333e4 (patch) | |
tree | 056a9516097226d7d6992273b2586fdf619c382c /usr.bin/make/lst.lib/lstConcat.c | |
parent | 82f18a9482f4ba9dc496eb84ba5acec216728a40 (diff) | |
download | FreeBSD-src-ba6eb9dcb908ffe7a797968e8a9b7dff037333e4.zip FreeBSD-src-ba6eb9dcb908ffe7a797968e8a9b7dff037333e4.tar.gz |
Stylification: missing spaces, extra space after function names, casts
and the sizeof operator, missing empty lines, void casts, extra empty lines.
Checked by: diff on make *.o lst.lib/*.o
Submitted by: Max Okumoto <okumoto@soe.ucsd.edu> (partly)
Diffstat (limited to 'usr.bin/make/lst.lib/lstConcat.c')
-rw-r--r-- | usr.bin/make/lst.lib/lstConcat.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/make/lst.lib/lstConcat.c b/usr.bin/make/lst.lib/lstConcat.c index 330425f..f0c771c 100644 --- a/usr.bin/make/lst.lib/lstConcat.c +++ b/usr.bin/make/lst.lib/lstConcat.c @@ -79,7 +79,8 @@ Lst_Concat(Lst list1, Lst list2, int flags) LstNode nln; /* new LstNode */ LstNode last; /* the last element in the list. Keeps * bookkeeping until the end */ - if (!Lst_Valid (list1) || !Lst_Valid (list2)) { + + if (!Lst_Valid(list1) || !Lst_Valid(list2)) { return (FAILURE); } @@ -119,7 +120,7 @@ Lst_Concat(Lst list1, Lst list2, int flags) list1->firstPtr->prevPtr = list1->lastPtr; list1->lastPtr->nextPtr = list1->firstPtr; } - free (list2); + free(list2); } else if (list2->firstPtr != NULL) { /* * We set the nextPtr of the last element of list 2 to be NULL to make |