diff options
Diffstat (limited to 'cpukit/librpc')
-rw-r--r-- | cpukit/librpc/src/rpc/clnt_perror.c | 5 | ||||
-rw-r--r-- | cpukit/librpc/src/rpc/rtems_rpc.c | 5 | ||||
-rw-r--r-- | cpukit/librpc/src/rpc/svc.c | 5 |
3 files changed, 14 insertions, 1 deletions
diff --git a/cpukit/librpc/src/rpc/clnt_perror.c b/cpukit/librpc/src/rpc/clnt_perror.c index a7df29c0dd..500abb5a18 100644 --- a/cpukit/librpc/src/rpc/clnt_perror.c +++ b/cpukit/librpc/src/rpc/clnt_perror.c @@ -39,6 +39,11 @@ static char *rcsid = "$FreeBSD: src/lib/libc/rpc/clnt_perror.c,v 1.11 1999/08/28 * Copyright (C) 1984, Sun Microsystems, Inc. * */ +/* Since we compile with strict ANSI we need to undef it to get + * prototypes for extensions + */ +#undef __STRICT_ANSI__ + #include <stdio.h> #include <stdlib.h> #include <string.h> diff --git a/cpukit/librpc/src/rpc/rtems_rpc.c b/cpukit/librpc/src/rpc/rtems_rpc.c index 254558fb47..301ba2138b 100644 --- a/cpukit/librpc/src/rpc/rtems_rpc.c +++ b/cpukit/librpc/src/rpc/rtems_rpc.c @@ -1,5 +1,7 @@ /* * RTEMS multi-tasking support + * + * $Id$ */ #include <rpc/rpc.h> @@ -44,7 +46,8 @@ int rtems_rpc_task_init (void) * - Go through and free linked list elements * - Free other allocated memory (e.g. clnt_perror_buf) */ - sc = rtems_task_variable_add (RTEMS_SELF, &rtems_rpc_task_variables, NULL); + sc = rtems_task_variable_add ( + RTEMS_SELF, (void *)&rtems_rpc_task_variables, NULL); if (sc != RTEMS_SUCCESSFUL) { free (tvp); return sc; diff --git a/cpukit/librpc/src/rpc/svc.c b/cpukit/librpc/src/rpc/svc.c index 751ca3185f..3d5a35316c 100644 --- a/cpukit/librpc/src/rpc/svc.c +++ b/cpukit/librpc/src/rpc/svc.c @@ -43,6 +43,11 @@ static char *rcsid = "$FreeBSD: src/lib/libc/rpc/svc.c,v 1.14 1999/08/28 00:00:4 * Copyright (C) 1984, Sun Microsystems, Inc. */ +/* Since we compile with strict ANSI we need to undef it to get + * prototypes for extensions + */ +#undef __STRICT_ANSI__ + #include <string.h> #include <stdlib.h> #include <sys/errno.h> |