getport.c: fix non-standard C
Subsystems (2)
PATCH 1/1 getport.c: fix non-standard C
Squelch a compiler warning in getport.c:
getport.c:65: warning: =E2=80=98static=E2=80=99 is not at beginning o=
f declaration
---
support/nfs/getport.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
support/nfs/getport.c +0 -0
@@ -60,9 +60,9 @@#endif /* !HAVE_LIBTIRPC */
=20
#ifdef HAVE_LIBTIRPC
-const static rpcvers_t default_rpcb_version =3D RPCBVERS_4; +static const rpcvers_t default_rpcb_version =3D RPCBVERS_4;
#else /* !HAVE_LIBTIRPC */
-const static rpcvers_t default_rpcb_version =3D PMAPVERS; +static const rpcvers_t default_rpcb_version =3D PMAPVERS;
#endif /* !HAVE_LIBTIRPC */
=20
#ifdef HAVE_DECL_AI_ADDRCONFIG
A message that is not in the archive (sent off-list or not yet received): 20090406160411.7179.41228.stgit-07a7zB5ZJzbwdl/1UfZZQIVfYA8g3rJ/@public.gmane.org
Quoted 3 lines · Chuck Lever
Squelch a compiler warning in
getport.c:
=20
getport.c:65: warning: =E2=80=98static=E2=80=99 is not at beginning=
of declaration
Quoted 21 lines
=20
Signed-off-by Chuck Lever <[email protected]>---
=20support/nfs/getport.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)=20
support/nfs/getport.c +0
-0@@ -60,9 +60,9 @@#endif /* !HAVE_LIBTIRPC */ =20
#ifdefHAVE_LIBTIRPCsupport/nfs/getport.c +2
-2-const static rpcvers_t default_rpcb_version =3D RPCBVERS_4; +static const rpcvers_t default_rpcb_version =3D RPCBVERS_4;#else /* !HAVE_LIBTIRPC */ -const static rpcvers_t default_rpcb_version =3D PMAPVERS; +static const rpcvers_t default_rpcb_version =3D PMAPVERS;#endif /* !HAVE_LIBTIRPC */
Quoted 3 lines
=20
#ifdefHAVE_DECL_AI_ADDRCONFIG
=20
Committed....
steved.