use C99 bool return types (true & false).
authorGerald (Jerry) Carter <jerry@samba.org>
Wed, 2 Jan 2008 20:54:25 +0000 (14:54 -0600)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 2 Jan 2008 20:54:25 +0000 (14:54 -0600)
(This used to be commit f22c9d6296c754d472e8eab51caa058f55ef370e)

source3/lib/winbind_util.c

index 2cabf5bcacf45e5c7a43bd505c793c1160ba01d8..3cf068a6e0da11d812a89c4f3954ce066f960e90 100644 (file)
@@ -35,12 +35,12 @@ bool winbind_lookup_name(const char *dom_name, const char *name, DOM_SID *sid,
 
        result = wbcLookupName(dom_name, name, &dom_sid, &type);
        if (result != WBC_ERR_SUCCESS)
-               return False;
+               return false;
 
        memcpy(sid, &dom_sid, sizeof(DOM_SID)); 
        *name_type = (enum lsa_SidType)type;    
 
-       return True;    
+       return true;    
 }
 
 /* Call winbindd to convert sid to name */
@@ -59,7 +59,7 @@ bool winbind_lookup_sid(TALLOC_CTX *mem_ctx, const DOM_SID *sid,
 
        result = wbcLookupSid(&dom_sid, &domain_name, &account_name, &type);
        if (result != WBC_ERR_SUCCESS)
-               return False;
+               return false;
 
        /* Copy out result */
 
@@ -79,11 +79,11 @@ bool winbind_lookup_sid(TALLOC_CTX *mem_ctx, const DOM_SID *sid,
        
        if ((domain && !*domain) || (name && !*name)) {         
                DEBUG(0,("winbind_lookup_sid: talloc() failed!\n"));
-               return False;
+               return false;
        }       
 
 
-       return True;
+       return true;
 }
 
 /* Ping winbindd to see it is alive */
@@ -193,7 +193,7 @@ bool winbind_lookup_rids(TALLOC_CTX *mem_ctx,
        ret = wbcLookupRids(&dom_sid, num_rids, rids,
                            &dom_name, &namelist, &name_types);
        if (ret != WBC_ERR_SUCCESS) {           
-               return False;
+               return false;
        }       
        
        *domain_name = talloc_strdup(mem_ctx, dom_name);
@@ -209,7 +209,7 @@ bool winbind_lookup_rids(TALLOC_CTX *mem_ctx,
        wbcFreeMemory(namelist);
        wbcFreeMemory(name_types);
        
-       return True;    
+       return true;    
 }
 
 /* Ask Winbind to allocate a new uid for us */
@@ -239,7 +239,7 @@ bool winbind_allocate_gid(gid_t *gid)
 bool winbind_lookup_name(const char *dom_name, const char *name, DOM_SID *sid, 
                          enum lsa_SidType *name_type)
 {
-       return False;
+       return false;
 }
 
 /* Call winbindd to convert sid to name */
@@ -248,42 +248,42 @@ bool winbind_lookup_sid(TALLOC_CTX *mem_ctx, const DOM_SID *sid,
                        const char **domain, const char **name,
                         enum lsa_SidType *name_type)
 {
-       return False;
+       return false;
 }
 
 /* Ping winbindd to see it is alive */
 
 bool winbind_ping(void)
 {
-       return False;
+       return false;
 }
 
 /* Call winbindd to convert SID to uid */
 
 bool winbind_sid_to_uid(uid_t *puid, const DOM_SID *sid)
 {
-       return False;
+       return false;
 }
 
 /* Call winbindd to convert uid to sid */
 
 bool winbind_uid_to_sid(DOM_SID *sid, uid_t uid)
 {
-       return False;
+       return false;
 }
 
 /* Call winbindd to convert SID to gid */
 
 bool winbind_sid_to_gid(gid_t *pgid, const DOM_SID *sid)
 {
-       return False;   
+       return false;   
 }
 
 /* Call winbindd to convert gid to sid */
 
 bool winbind_gid_to_sid(DOM_SID *sid, gid_t gid)
 {
-       return False;
+       return false;
 }
 
 /* Check for a trusted domain */
@@ -301,21 +301,21 @@ bool winbind_lookup_rids(TALLOC_CTX *mem_ctx,
                         const char **domain_name,
                         const char ***names, enum lsa_SidType **types)
 {
-       return False;
+       return false;
 }
 
 /* Ask Winbind to allocate a new uid for us */
 
 bool winbind_allocate_uid(uid_t *uid)
 {
-       return False;
+       return false;
 }
 
 /* Ask Winbind to allocate a new gid for us */
 
 bool winbind_allocate_gid(gid_t *gid)
 {
-       return False;
+       return false;
 }
 
 #endif     /* WITH_WINBIND */