From 60882e8641e1fb9d53c6be290132a81a5cdd02ee Mon Sep 17 00:00:00 2001 From: Stefan Ginsberg Date: Sun, 18 Jan 2009 15:48:55 +0000 Subject: [PATCH] - ws2_32 Winetest: Define __ROS_LONG64__ - rpcrt4 Winetest: Fix an implicit declaration warning -- this should be sent to Wine svn path=/trunk/; revision=38897 --- rostests/winetests/rpcrt4/server.c | 12 ++++----- rostests/winetests/rpcrt4/warningfix.diff | 30 +++++++++++++++++++++++ rostests/winetests/ws2_32/ws2_32.rbuild | 1 + 3 files changed, 37 insertions(+), 6 deletions(-) create mode 100644 rostests/winetests/rpcrt4/warningfix.diff diff --git a/rostests/winetests/rpcrt4/server.c b/rostests/winetests/rpcrt4/server.c index 77a0d5ad6c8..3b8847b818c 100644 --- a/rostests/winetests/rpcrt4/server.c +++ b/rostests/winetests/rpcrt4/server.c @@ -351,12 +351,6 @@ s_check_se2(se_t *s) ok(s->f == E2, "check_se2\n"); } -int -s_sum_parr(int *a[3]) -{ - return s_sum_pcarr(a, 3); -} - int s_sum_pcarr(int *a[], int n) { @@ -366,6 +360,12 @@ s_sum_pcarr(int *a[], int n) return s; } +int +s_sum_parr(int *a[3]) +{ + return s_sum_pcarr(a, 3); +} + int s_enum_ord(e_t e) { diff --git a/rostests/winetests/rpcrt4/warningfix.diff b/rostests/winetests/rpcrt4/warningfix.diff new file mode 100644 index 00000000000..39826297f32 --- /dev/null +++ b/rostests/winetests/rpcrt4/warningfix.diff @@ -0,0 +1,30 @@ +Index: server.c +=================================================================== +--- server.c (revision 38883) ++++ server.c (working copy) +@@ -352,12 +352,6 @@ + } + + int +-s_sum_parr(int *a[3]) +-{ +- return s_sum_pcarr(a, 3); +-} +- +-int + s_sum_pcarr(int *a[], int n) + { + int i, s = 0; +@@ -367,6 +361,12 @@ + } + + int ++s_sum_parr(int *a[3]) ++{ ++ return s_sum_pcarr(a, 3); ++} ++ ++int + s_enum_ord(e_t e) + { + switch (e) diff --git a/rostests/winetests/ws2_32/ws2_32.rbuild b/rostests/winetests/ws2_32/ws2_32.rbuild index 9111ade36b6..be58483d868 100644 --- a/rostests/winetests/ws2_32/ws2_32.rbuild +++ b/rostests/winetests/ws2_32/ws2_32.rbuild @@ -4,6 +4,7 @@ -Wno-format . + protocol.c sock.c testlist.c -- 2.17.1