Minor fixes.
authorAndrew Bartlett <abartlet@samba.org>
Sat, 15 Mar 2003 08:18:29 +0000 (08:18 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Sat, 15 Mar 2003 08:18:29 +0000 (08:18 +0000)
 - signed/unsigned
 - quieten warning about assignment as truth value
 - whitespace

Andrew Bartlett
(This used to be commit a13ce0df4b4a776fa635a1fb804dd00d195f58d0)

source3/include/rpc_lsa.h
source3/libsmb/trusts_util.c
source3/smbd/ipc.c
source3/utils/net_ads.c

index c091e7332127cb94eff6808d55ec944195685246..8e1368810fb438751d91564592d95ed4b9dc9400 100644 (file)
@@ -237,7 +237,7 @@ typedef struct r_lsa_query_sec_obj_info
 typedef struct lsa_query_info
 {
        POLICY_HND pol; /* policy handle */
-    uint16 info_class; /* info class */
+       uint16 info_class; /* info class */
 
 } LSA_Q_QUERY_INFO;
 
index 055851f6b7bf0f9789d96b459a92bb3292cfef52..f7b2c2e3a6296740a98715d3f2dc59cac1e1d195 100644 (file)
@@ -152,9 +152,9 @@ BOOL is_trusted_domain(const char* dom_name)
                                talloc_destroy(mem_ctx);
                                return True;
                        }
-               }                                               
+               }
        } while (NT_STATUS_EQUAL(result, STATUS_MORE_ENTRIES));
-               
+
        /*
         * Query the trustdom_cache updated periodically. The only
         * way for domain member server.
index c8bb0c250522c6a51af5cfa6f35a15675c5cf155..85e28f5d17279ba2c4fcf0da040fdec56e95ac03 100644 (file)
@@ -138,9 +138,9 @@ void send_trans_reply(char *outbuf,
                set_message(outbuf,10,1+this_ldata+this_lparam+align,False);
 
                copy_trans_params_and_data(outbuf, align,
-                                                                       rparam, tot_param_sent, this_lparam,
-                                                                       rdata, tot_data_sent, this_ldata);
-
+                                          rparam, tot_param_sent, this_lparam,
+                                          rdata, tot_data_sent, this_ldata);
+               
                SSVAL(outbuf,smb_vwv3,this_lparam);
                SSVAL(outbuf,smb_vwv4,smb_offset(smb_buf(outbuf)+1,outbuf));
                SSVAL(outbuf,smb_vwv5,tot_param_sent);
@@ -410,7 +410,7 @@ int reply_trans(connection_struct *conn, char *inbuf,char *outbuf, int size, int
        }
 
        if (suwcnt) {
-               int i;
+               unsigned int i;
                if((setup = (uint16 *)malloc(suwcnt*sizeof(uint16))) == NULL) {
                        DEBUG(0,("reply_trans: setup malloc fail for %u bytes !\n", (unsigned int)(suwcnt * sizeof(uint16))));
                        SAFE_FREE(data);
index ea31a925754aa322d8ac6a5af770160946615cf5..22b9d50ea15cb331e9880d74d242b3cd3d23f439 100644 (file)
@@ -155,7 +155,7 @@ retry:
         * If the username is of the form "name@realm", 
         * extract the realm and convert to upper case.
         */
-       if (realm = strchr(ads->auth.user_name, '@')) {
+       if ((realm = strchr(ads->auth.user_name, '@'))) {
                *realm++ = '\0';
                ads->auth.realm = strdup(realm);
                strupper(ads->auth.realm);