build: fix some no previous prototype warnings.
authorGünther Deschner <gd@samba.org>
Wed, 30 Jul 2008 15:47:40 +0000 (17:47 +0200)
committerGünther Deschner <gd@samba.org>
Wed, 30 Jul 2008 16:10:46 +0000 (18:10 +0200)
Guenther

source/libnet/libnet_samsync.c
source/nsswitch/winbind_krb5_locator.c

index 4f2a8f9222e180b3e1f043202965a814e713b90f..daf27ffb51c3279f0f7bcc96f7f7676b74fea77a 100644 (file)
@@ -22,7 +22,7 @@
 
 
 #include "includes.h"
-#include "libnet/libnet_samsync.h"
+#include "libnet/libnet.h"
 
 /**
  * Decrypt and extract the user's passwords.
index 33a68f0cdc25c603acff94674876b3bccdb1cc36..990c2cae50704928e8ad56b289a48262b4d64711 100644 (file)
@@ -222,8 +222,8 @@ static krb5_error_code smb_krb5_locator_call_cbfunc(const char *name,
  * @return krb5_error_code.
  */
 
-krb5_error_code smb_krb5_locator_init(krb5_context context,
-                                     void **private_data)
+static krb5_error_code smb_krb5_locator_init(krb5_context context,
+                                            void **private_data)
 {
        return 0;
 }
@@ -236,7 +236,7 @@ krb5_error_code smb_krb5_locator_init(krb5_context context,
  * @return void.
  */
 
-void smb_krb5_locator_close(void *private_data)
+static void smb_krb5_locator_close(void *private_data)
 {
        return;
 }
@@ -292,13 +292,13 @@ static bool ask_winbind(const char *realm, char **dcname)
  * @return krb5_error_code.
  */
 
-krb5_error_code smb_krb5_locator_lookup(void *private_data,
-                                       enum locate_service_type svc,
-                                       const char *realm,
-                                       int socktype,
-                                       int family,
-                                       int (*cbfunc)(void *, int, struct sockaddr *),
-                                       void *cbdata)
+static krb5_error_code smb_krb5_locator_lookup(void *private_data,
+                                              enum locate_service_type svc,
+                                              const char *realm,
+                                              int socktype,
+                                              int family,
+                                              int (*cbfunc)(void *, int, struct sockaddr *),
+                                                       void *cbdata)
 {
        krb5_error_code ret;
        struct addrinfo aihints;