Commit e5c8a6eb authored by Dan Hipschman's avatar Dan Hipschman Committed by Alexandre Julliard

rpcrt4: Fix build of test on Solaris by renaming a variable.

parent 5ca38675
...@@ -141,14 +141,14 @@ s_sum_sp(sp_t *sp) ...@@ -141,14 +141,14 @@ s_sum_sp(sp_t *sp)
} }
double double
s_square_sun(sun_t *sun) s_square_sun(sun_t *su)
{ {
switch (sun->s) switch (su->s)
{ {
case SUN_I: return sun->u.i * sun->u.i; case SUN_I: return su->u.i * su->u.i;
case SUN_F1: case SUN_F1:
case SUN_F2: return sun->u.f * sun->u.f; case SUN_F2: return su->u.f * su->u.f;
case SUN_PI: return (*sun->u.pi) * (*sun->u.pi); case SUN_PI: return (*su->u.pi) * (*su->u.pi);
default: default:
return 0.0; return 0.0;
} }
...@@ -279,25 +279,25 @@ basic_tests(void) ...@@ -279,25 +279,25 @@ basic_tests(void)
static void static void
union_tests(void) union_tests(void)
{ {
sun_t sun; sun_t su;
int i; int i;
sun.s = SUN_I; su.s = SUN_I;
sun.u.i = 9; su.u.i = 9;
ok(square_sun(&sun) == 81.0, "RPC square_sun\n"); ok(square_sun(&su) == 81.0, "RPC square_sun\n");
sun.s = SUN_F1; su.s = SUN_F1;
sun.u.f = 5.0; su.u.f = 5.0;
ok(square_sun(&sun) == 25.0, "RPC square_sun\n"); ok(square_sun(&su) == 25.0, "RPC square_sun\n");
sun.s = SUN_F2; su.s = SUN_F2;
sun.u.f = -2.0; su.u.f = -2.0;
ok(square_sun(&sun) == 4.0, "RPC square_sun\n"); ok(square_sun(&su) == 4.0, "RPC square_sun\n");
sun.s = SUN_PI; su.s = SUN_PI;
sun.u.pi = &i; su.u.pi = &i;
i = 11; i = 11;
ok(square_sun(&sun) == 121.0, "RPC square_sun\n"); ok(square_sun(&su) == 121.0, "RPC square_sun\n");
} }
static test_list_t * static test_list_t *
......
...@@ -95,7 +95,7 @@ interface IServer ...@@ -95,7 +95,7 @@ interface IServer
} sp_t; } sp_t;
int sum_sp(sp_t *sp); int sum_sp(sp_t *sp);
double square_sun(sun_t *sun); double square_sun(sun_t *su);
typedef struct test_list typedef struct test_list
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment