2007-02-11 Ralf Corsepius <ralf.corsepius@rtems.org>

* libnetworking/resolv.h: Typo fixes. Remove __P().
This commit is contained in:
Ralf Corsepius
2007-02-11 04:47:54 +00:00
parent c1f3bf3c90
commit f692e0044d
2 changed files with 64 additions and 60 deletions

View File

@@ -1,3 +1,7 @@
2007-02-11 Ralf Corsepius <ralf.corsepius@rtems.org>
* libnetworking/resolv.h: Typo fixes. Remove __P().
2007-02-09 Ralf Corsepius <ralf.corsepius@rtems.org> 2007-02-09 Ralf Corsepius <ralf.corsepius@rtems.org>
* rtems/include/rtems/rtems/tasks.h, rtems/src/taskcreate.c: * rtems/include/rtems/rtems/tasks.h, rtems/src/taskcreate.c:

View File

@@ -84,7 +84,7 @@ extern int h_errno;
/* /*
* Resolver configuration file. * Resolver configuration file.
* Normally not present, but may contain the address of the * Normally not present, but may contain the address of the
* inital name server(s) to query and the domain search list. * initial name server(s) to query and the domain search list.
*/ */
#ifndef _PATH_RESCONF #ifndef _PATH_RESCONF
@@ -104,7 +104,7 @@ extern int h_errno;
#define RES_MAXNDOTS 15 /* should reflect bit field size */ #define RES_MAXNDOTS 15 /* should reflect bit field size */
struct __res_state { struct __res_state {
int retrans; /* retransmition time interval */ int retrans; /* retransmission time interval */
int retry; /* number of times to retransmit */ int retry; /* number of times to retransmit */
u_long options; /* option flags - see below. */ u_long options; /* option flags - see below. */
int nscount; /* number of name servers */ int nscount; /* number of name servers */
@@ -169,19 +169,19 @@ struct __res_state {
typedef enum { res_goahead, res_nextns, res_modified, res_done, res_error } typedef enum { res_goahead, res_nextns, res_modified, res_done, res_error }
res_sendhookact; res_sendhookact;
typedef res_sendhookact (*res_send_qhook)__P((struct sockaddr_in * const *ns, typedef res_sendhookact (*res_send_qhook)(struct sockaddr_in * const *ns,
const u_char **query, const u_char **query,
int *querylen, int *querylen,
u_char *ans, u_char *ans,
int anssiz, int anssiz,
int *resplen)); int *resplen);
typedef res_sendhookact (*res_send_rhook)__P((const struct sockaddr_in *ns, typedef res_sendhookact (*res_send_rhook)(const struct sockaddr_in *ns,
const u_char *query, const u_char *query,
int querylen, int querylen,
u_char *ans, u_char *ans,
int anssiz, int anssiz,
int *resplen)); int *resplen);
struct res_sym { struct res_sym {
int number; /* Identifying number, like T_MX */ int number; /* Identifying number, like T_MX */
@@ -244,62 +244,62 @@ extern const struct res_sym __p_type_syms[];
#define res_freeupdrec __res_freeupdrec #define res_freeupdrec __res_freeupdrec
__BEGIN_DECLS __BEGIN_DECLS
int res_hnok __P((const char *)); int res_hnok (const char *);
int res_ownok __P((const char *)); int res_ownok (const char *);
int res_mailok __P((const char *)); int res_mailok (const char *);
int res_dnok __P((const char *)); int res_dnok (const char *);
int sym_ston __P((const struct res_sym *, const char *, int *)); int sym_ston (const struct res_sym *, const char *, int *);
const char * sym_ntos __P((const struct res_sym *, int, int *)); const char * sym_ntos (const struct res_sym *, int, int *);
const char * sym_ntop __P((const struct res_sym *, int, int *)); const char * sym_ntop (const struct res_sym *, int, int *);
int b64_ntop __P((u_char const *, size_t, char *, size_t)); int b64_ntop (u_char const *, size_t, char *, size_t);
int b64_pton __P((char const *, u_char *, size_t)); int b64_pton (char const *, u_char *, size_t);
int loc_aton __P((const char *, u_char *)); int loc_aton (const char *, u_char *);
const char * loc_ntoa __P((const u_char *, char *)); const char * loc_ntoa (const u_char *, char *);
int dn_skipname __P((const u_char *, const u_char *)); int dn_skipname (const u_char *, const u_char *);
void fp_resstat __P((struct __res_state *, FILE *)); void fp_resstat (struct __res_state *, FILE *);
void fp_query __P((const u_char *, FILE *)); void fp_query (const u_char *, FILE *);
void fp_nquery __P((const u_char *, int, FILE *)); void fp_nquery (const u_char *, int, FILE *);
const char * hostalias __P((const char *)); const char * hostalias (const char *);
void putlong __P((u_int32_t, u_char *)); void putlong (u_int32_t, u_char *);
void putshort __P((u_int16_t, u_char *)); void putshort (u_int16_t, u_char *);
const char * p_class __P((int)); const char * p_class (int);
const char * p_time __P((u_int32_t)); const char * p_time (u_int32_t);
const char * p_type __P((int)); const char * p_type (int);
void p_query __P((const u_char *)); void p_query (const u_char *);
const u_char * p_cdnname __P((const u_char *, const u_char *, int, FILE *)); const u_char * p_cdnname (const u_char *, const u_char *, int, FILE *);
const u_char * p_cdname __P((const u_char *, const u_char *, FILE *)); const u_char * p_cdname (const u_char *, const u_char *, FILE *);
const u_char * p_fqnname __P((const u_char *, const u_char *, const u_char * p_fqnname (const u_char *, const u_char *,
int, char *, int)); int, char *, int);
const u_char * p_fqname __P((const u_char *, const u_char *, FILE *)); const u_char * p_fqname (const u_char *, const u_char *, FILE *);
const char * p_option __P((u_long)); const char * p_option (u_long);
char * p_secstodate __P((u_long)); char * p_secstodate (u_long);
int dn_count_labels __P((const char *)); int dn_count_labels (const char *);
int dn_comp __P((const char *, u_char *, int, int dn_comp (const char *, u_char *, int,
u_char **, u_char **)); u_char **, u_char **);
int dn_expand __P((const u_char *, const u_char *, const u_char *, int dn_expand (const u_char *, const u_char *, const u_char *,
char *, int)); char *, int);
int res_init __P((void)); int res_init (void);
u_int res_randomid __P((void)); u_int res_randomid (void);
int res_query __P((const char *, int, int, u_char *, int)); int res_query (const char *, int, int, u_char *, int);
int res_search __P((const char *, int, int, u_char *, int)); int res_search (const char *, int, int, u_char *, int);
int res_querydomain __P((const char *, const char *, int, int, int res_querydomain (const char *, const char *, int, int,
u_char *, int)); u_char *, int);
int res_mkquery __P((int, const char *, int, int, const u_char *, int res_mkquery (int, const char *, int, int, const u_char *,
int, const u_char *, u_char *, int)); int, const u_char *, u_char *, int);
int res_send __P((const u_char *, int, u_char *, int)); int res_send (const u_char *, int, u_char *, int);
int res_isourserver __P((const struct sockaddr_in *)); int res_isourserver (const struct sockaddr_in *);
int res_nameinquery __P((const char *, int, int, int res_nameinquery (const char *, int, int,
const u_char *, const u_char *)); const u_char *, const u_char *);
int res_queriesmatch __P((const u_char *, const u_char *, int res_queriesmatch (const u_char *, const u_char *,
const u_char *, const u_char *)); const u_char *, const u_char *);
void res_close __P((void)); void res_close (void);
const char * p_section __P((int, int)); const char * p_section (int, int);
/* XXX The following depend on the ns_updrec typedef in arpa/nameser.h */ /* XXX The following depend on the ns_updrec typedef in arpa/nameser.h */
#ifdef _ARPA_NAMESER_H_ #ifdef _ARPA_NAMESER_H_
int res_update __P((ns_updrec *)); int res_update (ns_updrec *);
int res_mkupdate __P((ns_updrec *, u_char *, int)); int res_mkupdate (ns_updrec *, u_char *, int);
ns_updrec * res_mkupdrec __P((int, const char *, u_int, u_int, u_long)); ns_updrec * res_mkupdrec (int, const char *, u_int, u_int, u_long);
void res_freeupdrec __P((ns_updrec *)); void res_freeupdrec (ns_updrec *);
#endif #endif
__END_DECLS __END_DECLS