nsswitch: Make some functions static
authorVolker Lendecke <vl@samba.org>
Sat, 23 Jan 2010 17:06:53 +0000 (18:06 +0100)
committerVolker Lendecke <vl@samba.org>
Mon, 10 May 2010 10:11:14 +0000 (12:11 +0200)
nsswitch/wb_common.c
nsswitch/winbind_client.h

index d0dfcb8bbfb67326d82f2736b8110b3a9baf8688..f989d194e1d008445a4d2826617270eb96fd3d9e 100644 (file)
@@ -41,7 +41,8 @@ void winbindd_free_response(struct winbindd_response *response)
 
 /* Initialise a request structure */
 
-void winbindd_init_request(struct winbindd_request *request, int request_type)
+static void winbindd_init_request(struct winbindd_request *request,
+                                 int request_type)
 {
        request->length = sizeof(struct winbindd_request);
 
@@ -61,7 +62,7 @@ static void init_response(struct winbindd_response *response)
 
 /* Close established socket */
 
-void winbind_close_sock(void)
+static void winbind_close_sock(void)
 {
        if (winbindd_fd != -1) {
                close(winbindd_fd);
@@ -363,7 +364,8 @@ static int winbind_open_pipe_sock(int recursing, int need_priv)
 
 /* Write data to winbindd socket */
 
-int winbind_write_sock(void *buffer, int count, int recursing, int need_priv)
+static int winbind_write_sock(void *buffer, int count, int recursing,
+                             int need_priv)
 {
        int result, nwritten;
 
@@ -430,7 +432,7 @@ int winbind_write_sock(void *buffer, int count, int recursing, int need_priv)
 
 /* Read data from winbindd socket */
 
-int winbind_read_sock(void *buffer, int count)
+static int winbind_read_sock(void *buffer, int count)
 {
        int nread = 0;
        int total_time = 0, selret;
@@ -496,7 +498,7 @@ int winbind_read_sock(void *buffer, int count)
 
 /* Read reply */
 
-int winbindd_read_reply(struct winbindd_response *response)
+static int winbindd_read_reply(struct winbindd_response *response)
 {
        int result1, result2 = 0;
 
index b004d9c2c02ed22b6213b238b5e7ee97775fbab8..d4f60a2f9cea6003c4b3749545c6c2a902308a16 100644 (file)
@@ -1,7 +1,6 @@
 #include "winbind_nss_config.h"
 #include "winbind_struct_protocol.h"
 
-void winbindd_init_request(struct winbindd_request *req,int rq_type);
 void winbindd_free_response(struct winbindd_response *response);
 NSS_STATUS winbindd_send_request(int req_type, int need_priv,
                                 struct winbindd_request *request);
@@ -12,8 +11,6 @@ NSS_STATUS winbindd_request_response(int req_type,
 NSS_STATUS winbindd_priv_request_response(int req_type,
                                          struct winbindd_request *request,
                                          struct winbindd_response *response);
-int winbindd_read_reply(struct winbindd_response *response);
-
 #define winbind_env_set() \
        (strcmp(getenv(WINBINDD_DONT_ENV)?getenv(WINBINDD_DONT_ENV):"0","1") == 0)
 
@@ -23,8 +20,5 @@ int winbindd_read_reply(struct winbindd_response *response);
 #define winbind_on() \
        (setenv(WINBINDD_DONT_ENV, "0", 1) == 0)
 
-int winbind_write_sock(void *buffer, int count, int recursing, int need_priv);
-int winbind_read_sock(void *buffer, int count);
-void winbind_close_sock(void);
 
 const char *nss_err_str(NSS_STATUS ret);