svn commit: samba r16960 - branches/SAMBA_3_0/source/libsmb
branches/SAMBA_3_0/source/torture trunk/source/libsmb
trunk/source/torture
vlendec at samba.org
vlendec at samba.org
Tue Jul 11 21:23:44 GMT 2006
Author: vlendec
Date: 2006-07-11 21:23:44 +0000 (Tue, 11 Jul 2006)
New Revision: 16960
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=16960
Log:
Some warnings from host "opi"
Modified:
branches/SAMBA_3_0/source/libsmb/clikrb5.c
branches/SAMBA_3_0/source/torture/msgtest.c
branches/SAMBA_3_0/source/torture/torture.c
trunk/source/libsmb/clikrb5.c
trunk/source/torture/msgtest.c
trunk/source/torture/torture.c
Changeset:
Modified: branches/SAMBA_3_0/source/libsmb/clikrb5.c
===================================================================
--- branches/SAMBA_3_0/source/libsmb/clikrb5.c 2006-07-11 21:10:44 UTC (rev 16959)
+++ branches/SAMBA_3_0/source/libsmb/clikrb5.c 2006-07-11 21:23:44 UTC (rev 16960)
@@ -682,7 +682,7 @@
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);
Modified: branches/SAMBA_3_0/source/torture/msgtest.c
===================================================================
--- branches/SAMBA_3_0/source/torture/msgtest.c 2006-07-11 21:10:44 UTC (rev 16959)
+++ branches/SAMBA_3_0/source/torture/msgtest.c 2006-07-11 21:23:44 UTC (rev 16960)
@@ -114,7 +114,7 @@
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 @@
}
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",
Modified: branches/SAMBA_3_0/source/torture/torture.c
===================================================================
--- branches/SAMBA_3_0/source/torture/torture.c 2006-07-11 21:10:44 UTC (rev 16959)
+++ branches/SAMBA_3_0/source/torture/torture.c 2006-07-11 21:23:44 UTC (rev 16960)
@@ -503,7 +503,7 @@
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 @@
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 @@
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 @@
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,
Modified: trunk/source/libsmb/clikrb5.c
===================================================================
--- trunk/source/libsmb/clikrb5.c 2006-07-11 21:10:44 UTC (rev 16959)
+++ trunk/source/libsmb/clikrb5.c 2006-07-11 21:23:44 UTC (rev 16960)
@@ -682,7 +682,7 @@
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);
Modified: trunk/source/torture/msgtest.c
===================================================================
--- trunk/source/torture/msgtest.c 2006-07-11 21:10:44 UTC (rev 16959)
+++ trunk/source/torture/msgtest.c 2006-07-11 21:23:44 UTC (rev 16960)
@@ -114,7 +114,7 @@
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 @@
}
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",
Modified: trunk/source/torture/torture.c
===================================================================
--- trunk/source/torture/torture.c 2006-07-11 21:10:44 UTC (rev 16959)
+++ trunk/source/torture/torture.c 2006-07-11 21:23:44 UTC (rev 16960)
@@ -503,7 +503,7 @@
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 @@
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 @@
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 @@
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,
More information about the samba-cvs
mailing list