Skip to content

Commit

Permalink
Move definitions out of rpc_com so that the linker doesn't complain a…
Browse files Browse the repository at this point in the history
…bout

multiple definitions.

Reported by:	sbruno
  • Loading branch information
davidchisnall committed Apr 6, 2014
1 parent 91f2810 commit 56dbb20
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/libc/rpc/rpc_com.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ bool_t __xdrrec_setnonblock(XDR *, int);
bool_t __xdrrec_getrec(XDR *, enum xprt_stat *, bool_t);
void __xprt_unregister_unlocked(SVCXPRT *);

SVCXPRT **__svc_xports;
int __svc_maxrec;
extern SVCXPRT **__svc_xports;
extern int __svc_maxrec;

__END_DECLS

Expand Down
3 changes: 3 additions & 0 deletions lib/libc/rpc/svc.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ static struct svc_callout {
void (*sc_dispatch)(struct svc_req *, SVCXPRT *);
} *svc_head;

SVCXPRT **__svc_xports;
int __svc_maxrec;

static struct svc_callout *svc_find(rpcprog_t, rpcvers_t,
struct svc_callout **, char *);
static void __xprt_do_unregister (SVCXPRT *xprt, bool_t dolock);
Expand Down

0 comments on commit 56dbb20

Please sign in to comment.