]> granicus.if.org Git - libtirpc/commitdiff
Clean up: Prevent unnecessary compiler warnings like: libtirpc-0-2-2-rc2
authorChuck Lever <chuck.lever@oracle.com>
Tue, 18 May 2010 23:45:56 +0000 (19:45 -0400)
committerSteve Dickson <steved@redhat.com>
Tue, 18 May 2010 23:45:56 +0000 (19:45 -0400)
/usr/include/tirpc/rpc/rpcent.h:48:1: warning: C++ style comments are
not allowed in ISO C90

These appear when users compile their programs against TI-RPC headers
with "-pedantic" and the default standards setting (-std=gnu89).

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
tirpc/rpc/auth_des.h
tirpc/rpc/clnt.h
tirpc/rpc/rpcent.h
tirpc/rpc/types.h
tirpc/rpc/xdr.h

index f3f9f31fef7d85bab593954c23ad49939494ada4..39b533276b390aee7768bf6b7d22ad0318551cf0 100644 (file)
@@ -84,7 +84,7 @@ struct authdes_verf {
                struct timeval adv_ctime;       /* clear time */
                des_block adv_xtime;            /* crypt time */
        } adv_time_u;
-  //u_long adv_int_u;
+  /*u_long adv_int_u;*/
   u_int32_t adv_int_u;
 };
 
index 0b26189aa360601b9ebd7334af6ebb4c93760e0e..e7bb43fa48f5664785c7bf0ccc01998a3bfa582c 100644 (file)
@@ -42,8 +42,7 @@
 #ifndef _TIRPC_CLNT_H_
 #define _TIRPC_CLNT_H_
 
-//#include <rpc/clnt_stat.h>
-#include "clnt_stat.h"
+#include <rpc/clnt_stat.h>
 #include <rpc/auth.h>
 
 #include <sys/cdefs.h>
index 1d83550b616a444f4b248ce66c96bb360b53299a..7fd93d9f85c540770cbe975e326a870474f54cca 100644 (file)
 /*     #pragma ident "@(#)rpcent.h   1.13    94/04/25 SMI"     */
 /*      @(#)rpcent.h 1.1 88/12/06 SMI   */
 
+__BEGIN_DECLS
 
-//struct rpcent {
-//      char    *r_name;        /* name of server for this rpc program */
-//      char    **r_aliases;    /* alias list */
-//      int     r_number;       /* rpc program number */
-//};
+/* These are defined in /usr/include/rpc/netdb.h */
+#if 0
+struct rpcent {
+       char    *r_name;        /* name of server for this rpc program */
+       char    **r_aliases;    /* alias list */
+       int     r_number;       /* rpc program number */
+};
 
-__BEGIN_DECLS
-//extern struct rpcent *getrpcbyname_r(const char *, struct rpcent *,
-//                                  char *, int);
-//extern struct rpcent *getrpcbynumber_r(int, struct rpcent *, char *, int);
-//extern struct rpcent *getrpcent_r(struct rpcent *, char *, int);
+extern struct rpcent *getrpcbyname_r(const char *, struct rpcent *,
+                                       char *, int);
+extern struct rpcent *getrpcbynumber_r(int, struct rpcent *, char *, int);
+extern struct rpcent *getrpcent_r(struct rpcent *, char *, int);
 
 /* Old interfaces that return a pointer to a static area;  MT-unsafe */
-//extern struct rpcent *getrpcbyname(char *);
-//extern struct rpcent *getrpcbynumber(int);
-//extern struct rpcent *getrpcent(void);
+extern struct rpcent *getrpcbyname(char *);
+extern struct rpcent *getrpcbynumber(int);
+extern struct rpcent *getrpcent(void);
+#endif
+
 extern void setrpcent(int) __THROW;
 extern void endrpcent(void) __THROW;
 __END_DECLS
index d99a57b2879cfae99225955f90cb2044f2f610d9..52c30a2777b8e626fa489454f6d4a17f11012923 100644 (file)
@@ -39,7 +39,6 @@
 #define _TIRPC_TYPES_H
 
 #include <sys/types.h>
-//#include <sys/_null.h>
 
 typedef int32_t bool_t;
 typedef int32_t enum_t;
index 3a6bc964f3c33054164c60d166b3ac0808bc8fc6..2c2a860b5238efba758f2fc938fa8f25b2e27653 100644 (file)
@@ -43,7 +43,7 @@
 #include <sys/cdefs.h>
 #include <stdio.h>
 #include <netinet/in.h>
-// Rajout pour la définition des types
+
 #include <rpc/types.h>
 
 /*