[LIBTIRPC] Do not declare global variables in a header

This commit is contained in:
Victor Perevertkin 2022-03-24 02:46:53 +03:00
parent 6e5d80df69
commit 5632aa5d82
No known key found for this signature in database
GPG key ID: C750B7222E9C7830
2 changed files with 5 additions and 3 deletions

View file

@ -92,9 +92,8 @@ bool_t __xdrrec_getrec(XDR *, enum xprt_stat *, bool_t);
void __xprt_unregister_unlocked(SVCXPRT *);
void __xprt_set_raddr(SVCXPRT *, const struct sockaddr_storage *);
SVCXPRT **__svc_xports;
int __svc_maxrec;
extern SVCXPRT **__svc_xports;
extern int __svc_maxrec;
__END_DECLS

View file

@ -37,3 +37,6 @@
struct opaque_auth _null_auth;
fd_set svc_fdset;
int svc_maxfd = -1;
SVCXPRT **__svc_xports;
int __svc_maxrec;