This makes build with -fno-common possible and allows ASan enabling.
Change-Id: If8aae6e82f692837bcb816cbeae39608ba99975a
Signed-off-by: Slava Barinov <v.barinov@samsung.com>
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
#define max(a, b) (a > b ? a : b)
+SVCXPRT **__svc_xports;
+int __svc_maxrec;
+
/*
* The services list
* Each entry represents a set of procedures (an rpc program).
* If so, then break.
*/
rwlock_rdlock (&svc_fd_lock);
-
+
if (xprt != __svc_xports[fd])
{
rwlock_unlock (&svc_fd_lock);