diff options
author | Luke Leighton <lkcl@samba.org> | 1998-09-23 21:49:09 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1998-09-23 21:49:09 +0000 |
commit | 500a474aae49bd1cc8e75481a3b3cd6e79720d89 (patch) | |
tree | f54565577fcc595c6986aefece306ff7aff079f4 /source3/include | |
parent | 0e091a52074655aedeeaad488d61e241909a3dc5 (diff) | |
download | samba-500a474aae49bd1cc8e75481a3b3cd6e79720d89.tar.gz samba-500a474aae49bd1cc8e75481a3b3cd6e79720d89.tar.bz2 samba-500a474aae49bd1cc8e75481a3b3cd6e79720d89.zip |
nttrans.c:
winreg was missing from the list of pipes. advise using the array
already defined in... rpc_parse/parse_rpc.c's pipe_names[], but
writing code to strip "\PIPE\" from the front when making the
check.
one location to update when adding new pipes, not two.
srv_pipe_hnd.c:
moved the ZERO_STRUCT(p) macro to _before_ the DLIST_ADD(Pipes, p) macro.
dlinklist.h:
added { }s around the code inserted by DLIST_ADD and DLIST_REMOVE macros
(This used to be commit 29201d4b9b52652c7a992d0f6b677a09b4c33912)
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/dlinklist.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source3/include/dlinklist.h b/source3/include/dlinklist.h index 8810eca5b9..851bf01d38 100644 --- a/source3/include/dlinklist.h +++ b/source3/include/dlinklist.h @@ -25,6 +25,7 @@ /* hook into the front of the list */ #define DLIST_ADD(list, p) \ +{ \ if (!(list)) { \ (list) = (p); \ (p)->next = (p)->prev = NULL; \ @@ -33,18 +34,21 @@ (p)->next = (list); \ (p)->prev = NULL; \ (list) = (p); \ - } + }\ +} /* remove an element from a list */ #define DLIST_REMOVE(list, p) \ +{ \ if ((p) == (list)) { \ (list) = (p)->next; \ if (list) (list)->prev = NULL; \ } else { \ (p)->prev->next = (p)->next; \ if ((p)->next) (p)->next->prev = (p)->prev; \ - } + } \ +} /* promote an element to the top of the list */ #define DLIST_PROMOTE(list, p) \ |