diff options
author | Florian Weimer <fweimer@redhat.com> | 2018-05-11 15:36:50 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2018-05-11 15:36:50 +0200 |
commit | 89aacb513eb77549a29df2638913a0f8178cf3f5 (patch) | |
tree | 160dfa13091d79de8091b4d7a33af318ee6cfa95 /sunrpc/svcauth_des.c | |
parent | bb066cb806dfe55511cf2fb59bf013751152608f (diff) | |
download | glibc-89aacb513eb77549a29df2638913a0f8178cf3f5.tar.gz glibc-89aacb513eb77549a29df2638913a0f8178cf3f5.tar.xz glibc-89aacb513eb77549a29df2638913a0f8178cf3f5.zip |
sunrpc: Remove stray exports without --enable-obsolete-rpc [BZ #23166]
This is needed to avoid a warning when linking against libtirpc: /lib64/libc.so.6: warning: common of `rpc_createerr@@TIRPC_0.3.0' overridden by definition /usr/lib64/libtirpc.so: warning: defined here This ld warning is not enabled by default; -Wl,--warn-common enables it. Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'sunrpc/svcauth_des.c')
-rw-r--r-- | sunrpc/svcauth_des.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/sunrpc/svcauth_des.c b/sunrpc/svcauth_des.c index f99a5a324f..9ce4804239 100644 --- a/sunrpc/svcauth_des.c +++ b/sunrpc/svcauth_des.c @@ -87,16 +87,21 @@ static void cache_ref (uint32_t sid); /* note that sid was ref'd */ static void invalidate (char *cred); /* invalidate entry in cache */ -/* - * cache statistics - */ +/* Cache statistics. Accidental historic export without a matching + declaration in any header file. */ +#ifndef SHARED +static +#endif struct { u_long ncachehits; /* times cache hit, and is not replay */ u_long ncachereplays; /* times cache hit, and is replay */ u_long ncachemisses; /* times cache missed */ } -svcauthdes_stats; +svcauthdes_stats __attribute__ ((nocommon)); +#ifdef SHARED +compat_symbol (libc, svcauthdes_stats, svcauthdes_stats, GLIBC_2_0); +#endif /* * Service side authenticator for AUTH_DES |