Skip to contentSkip to conversation

getport.c: fix non-standard C

PATCH In review Chuck Lever 2 participants 2 messages Apr 6, 2009 – Apr 15, 2009 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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
index 734d21a..cf1677e 100644
@@ -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

#2 lore raw
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

---
=20

 support/nfs/getport.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

=20

support/nfs/getport.c +0 -0
index 734d21a..cf1677e 100644
@@ -60,9 +60,9 @@
 #endif	/* !HAVE_LIBTIRPC */

=20
#ifdef HAVE_LIBTIRPC

support/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
#ifdef HAVE_DECL_AI_ADDRCONFIG
=20

Committed....

steved.