diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-10-20 18:59:51 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-10-20 18:59:51 +0200 |
commit | 87ec1d2532eb17dfd7f98431bdfa4071be57f683 (patch) | |
tree | 7543ac112a660083d05c1b4734ffb7fdc169d656 /source4/libnet | |
parent | 01a902f59978cebdab22aaee7d9e0c9bb78bc649 (diff) | |
download | samba-87ec1d2532eb17dfd7f98431bdfa4071be57f683.tar.gz samba-87ec1d2532eb17dfd7f98431bdfa4071be57f683.tar.bz2 samba-87ec1d2532eb17dfd7f98431bdfa4071be57f683.zip |
Make sure prototypes are always included, make some functions static and
remove some unused functions.
Diffstat (limited to 'source4/libnet')
-rw-r--r-- | source4/libnet/groupinfo.c | 1 | ||||
-rw-r--r-- | source4/libnet/groupman.c | 1 | ||||
-rw-r--r-- | source4/libnet/py_net.c | 2 | ||||
-rw-r--r-- | source4/libnet/userinfo.c | 1 | ||||
-rw-r--r-- | source4/libnet/userman.c | 1 |
5 files changed, 5 insertions, 1 deletions
diff --git a/source4/libnet/groupinfo.c b/source4/libnet/groupinfo.c index 6c8580a662..1da6646702 100644 --- a/source4/libnet/groupinfo.c +++ b/source4/libnet/groupinfo.c @@ -30,6 +30,7 @@ #include "libnet/userman.h" #include "libnet/groupinfo.h" #include "librpc/gen_ndr/ndr_samr_c.h" +#include "libnet/libnet_proto.h" struct groupinfo_state { diff --git a/source4/libnet/groupman.c b/source4/libnet/groupman.c index 1e12c87713..58d5742336 100644 --- a/source4/libnet/groupman.c +++ b/source4/libnet/groupman.c @@ -26,6 +26,7 @@ #include "libnet/composite.h" #include "libnet/groupman.h" #include "librpc/gen_ndr/ndr_samr_c.h" +#include "libnet/libnet_proto.h" struct groupadd_state { diff --git a/source4/libnet/py_net.c b/source4/libnet/py_net.c index 3736454fa0..d5495f1e72 100644 --- a/source4/libnet/py_net.c +++ b/source4/libnet/py_net.c @@ -24,7 +24,7 @@ #include "libcli/security/security.h" #include "lib/events/events.h" -struct libnet_context *py_net_ctx(PyObject *obj, struct event_context *ev) +static struct libnet_context *py_net_ctx(PyObject *obj, struct event_context *ev) { /* FIXME: Use obj */ return libnet_context_init(ev, global_loadparm); diff --git a/source4/libnet/userinfo.c b/source4/libnet/userinfo.c index 847997fc12..e8b6b090c7 100644 --- a/source4/libnet/userinfo.c +++ b/source4/libnet/userinfo.c @@ -29,6 +29,7 @@ #include "libnet/userman.h" #include "libnet/userinfo.h" #include "librpc/gen_ndr/ndr_samr_c.h" +#include "libnet/libnet_proto.h" struct userinfo_state { diff --git a/source4/libnet/userman.c b/source4/libnet/userman.c index 25ed4775cb..398d9f2cb0 100644 --- a/source4/libnet/userman.c +++ b/source4/libnet/userman.c @@ -27,6 +27,7 @@ #include "libnet/userman.h" #include "libnet/userinfo.h" #include "librpc/gen_ndr/ndr_samr_c.h" +#include "libnet/libnet_proto.h" /* * Composite USER ADD functionality |