r16960: Some warnings from host "opi"
authorVolker Lendecke <vlendec@samba.org>
Tue, 11 Jul 2006 21:23:44 +0000 (21:23 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:19:15 +0000 (11:19 -0500)
(This used to be commit 083ef11cc9be8f1299f233bde194173e092e2c3c)

source3/libsmb/clikrb5.c
source3/torture/msgtest.c
source3/torture/torture.c

index d40fc31dc441d435da4a48670966f57a2dfdc2c6..f0169eb91e658ed8e3bb9457538d90456e308f6f 100644 (file)
@@ -682,7 +682,7 @@ failed:
        else
                err = krb5_auth_con_getlocalsubkey(context, auth_context, &skey);
        if (err == 0 && skey != NULL) {
-               DEBUG(10, ("Got KRB5 session key of length %d\n",  KRB5_KEY_LENGTH(skey)));
+               DEBUG(10, ("Got KRB5 session key of length %d\n",  (int)KRB5_KEY_LENGTH(skey)));
                *session_key = data_blob(KRB5_KEY_DATA(skey), KRB5_KEY_LENGTH(skey));
                dump_data_pw("KRB5 Session Key:\n", session_key->data, session_key->length);
 
index 035214b3a96a93f1fc2f531dd940da727e9d65a9..557f4edf88766a8e06619c8a79d4b8f932bd6f9f 100644 (file)
@@ -114,7 +114,7 @@ void pong_message(int msg_type, struct process_id src, void *buf, size_t len)
                size_t timelimit = n;
                size_t ping_count = 0;
 
-               printf("Sending pings for %d seconds\n", timelimit);
+               printf("Sending pings for %d seconds\n", (int)timelimit);
                while (timeval_elapsed(&tv) < timelimit) {                              
                        if(message_send_pid(pid_to_procid(pid), MSG_PING,
                                                                buf, 11, False)) ping_count++;
@@ -127,14 +127,14 @@ void pong_message(int msg_type, struct process_id src, void *buf, size_t len)
                }
                
                printf("waiting for %d remaining replies (done %d)\n", 
-                          ping_count - pong_count, pong_count);
+                      (int)(ping_count - pong_count), pong_count);
                while (timeval_elapsed(&tv) < 30 && pong_count < ping_count) {
                        message_dispatch();
                }
                
                if (ping_count != pong_count) {
-                       fprintf(stderr, "ping test failed! received %d, sent %d\n", 
-                      pong_count, ping_count);
+                       fprintf(stderr, "ping test failed! received %d, sent "
+                               "%d\n", pong_count, (int)ping_count);
                }
                
                printf("ping rate of %.0f messages/sec\n", 
index 25e249ed2e175c19a58304585b4e4cb04a166f85..961c9c89fd0660a90233bfbc8f323291ab74b58d 100644 (file)
@@ -503,7 +503,7 @@ static BOOL rw_torture2(struct cli_state *c1, struct cli_state *c2)
 
                if ((bytes_read = cli_read(c2, fnum2, buf_rd, 0, buf_size)) != buf_size) {
                        printf("read failed (%s)\n", cli_errstr(c2));
-                       printf("read %d, expected %ld\n", bytes_read, 
+                       printf("read %d, expected %ld\n", (int)bytes_read, 
                               (unsigned long)buf_size); 
                        correct = False;
                        break;
@@ -4257,7 +4257,8 @@ BOOL torture_ioctl_test(int dummy)
                        status = cli_raw_ioctl(cli, fnum, code, &blob);
 
                        if (NT_STATUS_IS_OK(status)) {
-                               printf("ioctl 0x%x OK : %d bytes\n", code, blob.length);
+                               printf("ioctl 0x%x OK : %d bytes\n", (int)code,
+                                      blob.length);
                                data_blob_free(&blob);
                        }
                }
@@ -4408,7 +4409,7 @@ static BOOL run_eatest(int dummy)
                correct = False;
        }
 
-       printf("num_eas = %d\n", num_eas);
+       printf("num_eas = %d\n", (int)num_eas);
 
        if (num_eas != 20) {
                printf("Should be 20 EA's stored... failing.\n");
@@ -4442,7 +4443,7 @@ static BOOL run_eatest(int dummy)
                correct = False;
        }
 
-       printf("num_eas = %d\n", num_eas);
+       printf("num_eas = %d\n", (int)num_eas);
        for (i = 0; i < num_eas; i++) {
                printf("%d: ea_name = %s. Val = ", i, ea_list[i].name);
                dump_data(0, (char *)ea_list[i].value.data,