lib/util: Remove dummy wrappers for setpwent/getpwent/endpwent.
authorJelmer Vernooij <jelmer@samba.org>
Sat, 24 Mar 2012 14:23:02 +0000 (15:23 +0100)
committerJelmer Vernooij <jelmer@samba.org>
Sat, 24 Mar 2012 14:23:02 +0000 (15:23 +0100)
lib/util/util_pw.c
lib/util/util_pw.h
source3/lib/sock_exec.c
source3/smbd/ntquotas.c

index c6e4680ec3faa44f3db9f6c37f0196e7659a8d4b..43ac0b3467cd127ab455fd3ae1ded9e252ff0425 100644 (file)
 #include "system/passwd.h"
 #include "lib/util/util_pw.h"
 
-/**************************************************************************
- Wrappers for setpwent(), getpwent() and endpwent()
-****************************************************************************/
-
-void sys_setpwent(void)
-{
-       setpwent();
-}
-
-struct passwd *sys_getpwent(void)
-{
-       return getpwent();
-}
-
-void sys_endpwent(void)
-{
-       endpwent();
-}
-
 /**************************************************************************
  Wrappers for getpwnam(), getpwuid(), getgrnam(), getgrgid()
 ****************************************************************************/
index 2967963459085aabb8e1a709cc02e9c4b4a0ac0d..b572502fc55e612aa6b7da98422d6aa3524cfa5d 100644 (file)
@@ -24,9 +24,6 @@
 #ifndef __LIB_UTIL_UTIL_PW_H__
 #define __LIB_UTIL_UTIL_PW_H__
 
-void sys_setpwent(void);
-struct passwd *sys_getpwent(void);
-void sys_endpwent(void);
 struct passwd *sys_getpwnam(const char *name);
 struct passwd *sys_getpwuid(uid_t uid);
 struct group *sys_getgrnam(const char *name);
index 419d60d05c3f57b4db90880352f3bf35397b4be7..403b38b1880d882e97e2696eb8f10953e50e421f 100644 (file)
@@ -70,7 +70,7 @@ static int socketpair_tcp(int fd[2])
 
        close(listener);
        if (connect_done == 0) {
-               if (connect(fd[1], (struct sockaddr *)&sock, salen) != 0
+               if (connect(fd[1], (struct sockaddr *)&sock, socklen) != 0
                    && errno != EISCONN) goto failed;
        }
 
index 147f95adf35031c1d9f8e45a3f9c822e9d360059..15fd35b92e4d9c7cb004e714bbdd3e058aa8f09c 100644 (file)
@@ -176,8 +176,8 @@ int vfs_get_user_ntquota_list(files_struct *fsp, SMB_NTQUOTA_LIST **qt_list)
                return (-1);
        }
 
-       sys_setpwent();
-       while ((usr = sys_getpwent()) != NULL) {
+       setpwent();
+       while ((usr = getpwent()) != NULL) {
                SMB_NTQUOTA_STRUCT tmp_qt;
                SMB_NTQUOTA_LIST *tmp_list_ent;
                struct dom_sid  sid;
@@ -222,7 +222,7 @@ int vfs_get_user_ntquota_list(files_struct *fsp, SMB_NTQUOTA_LIST **qt_list)
                DLIST_ADD((*qt_list),tmp_list_ent);
                
        }
-       sys_endpwent();
+       endpwent();
 
        return 0;
 }