FreeBSD Bugzilla – Attachment 152031 Details for
Bug 197009
net/libutp: utilities fail to build on amd64
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
files/patch-size_t
patch-size_t (text/plain), 1.47 KB, created by
Jan Beich
on 2015-01-22 21:40:03 UTC
(
hide
)
Description:
files/patch-size_t
Filename:
MIME Type:
Creator:
Jan Beich
Created:
2015-01-22 21:40:03 UTC
Size:
1.47 KB
patch
obsolete
>--- utp_file/utp_recv.cpp~ >+++ utp_file/utp_recv.cpp >@@ -204,7 +204,7 @@ void utp_read(void* socket, const byte* > void utp_write(void* socket, byte* bytes, size_t count) > { > assert(utp_socket == socket); >- printf("utp on_write %u\n", count); >+ printf("utp on_write %zu\n", count); > assert(false); > } > >@@ -364,12 +364,12 @@ int main(int argc, char* argv[]) > float rate = (total_recv - last_recv) * 1000.f / (cur_time - last_time); > last_recv = total_recv; > last_time = cur_time; >- printf("\r[%u] recv: %d %.1f bytes/s ", cur_time, total_recv, rate); >+ printf("\r[%u] recv: %zd %.1f bytes/s ", cur_time, total_recv, rate); > fflush(stdout); > } > } > >- printf("\nreceived: %d bytes\n", total_recv); >+ printf("\nreceived: %zd bytes\n", total_recv); > fclose(file); > fclose(log_file); > } >--- utp_file/utp_send.cpp~ >+++ utp_file/utp_send.cpp >@@ -251,7 +251,7 @@ void UDPSocketManager::select(int micros > void utp_read(void* socket, const byte* bytes, size_t count) > { > assert(utp_socket == socket); >- printf("utp on_read %u\n", count); >+ printf("utp on_read %zu\n", count); > assert(false); > } > >@@ -391,7 +391,7 @@ int main(int argc, char* argv[]) > float rate = (total_sent - last_sent) * 1000.f / (cur_time - last_time); > last_sent = total_sent; > last_time = cur_time; >- printf("\r[%u] sent: %d/%d %.1f bytes/s ", cur_time, total_sent, file_size, rate); >+ printf("\r[%u] sent: %zd/%zd %.1f bytes/s ", cur_time, total_sent, file_size, rate); > fflush(stdout); > } > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 197009
: 152031 |
152032
|
152033
|
152034