diff options
author | des <des@FreeBSD.org> | 2002-02-06 13:30:31 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2002-02-06 13:30:31 +0000 |
commit | 0f2cb9b020b907000a28323fc57a82fdb7d6626d (patch) | |
tree | d44f2702502c982570c85130c91c845a83ea8052 /usr.sbin/ypserv/yp_extern.h | |
parent | 0e1bb965cc26648289a6a22baf0ad5ef4891edb4 (diff) | |
download | FreeBSD-src-0f2cb9b020b907000a28323fc57a82fdb7d6626d.zip FreeBSD-src-0f2cb9b020b907000a28323fc57a82fdb7d6626d.tar.gz |
Apply the following mechanical transformations in preparation for
ansification and constification:
s{\s+__P\((\(.*?\))\)}{$1}g;
s{\(\s+}{\(}g;
s{\s+\)}{\)}g;
s{\s+,}{,}g;
s{(\s+)(for|if|switch|while)\(}{$1$2 \(}g;
s{return ([^\(].*?);}{return ($1);}g;
s{([\w\)])([!=+/\*-]?=)([\w\(+-])}{$1 $2 $3}g;
s{\s+$}{\n};g
Also add $FreeBSD$ where needed.
MFC after: 1 week
Diffstat (limited to 'usr.sbin/ypserv/yp_extern.h')
-rw-r--r-- | usr.sbin/ypserv/yp_extern.h | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/usr.sbin/ypserv/yp_extern.h b/usr.sbin/ypserv/yp_extern.h index 75d2dd3..553e296 100644 --- a/usr.sbin/ypserv/yp_extern.h +++ b/usr.sbin/ypserv/yp_extern.h @@ -71,45 +71,45 @@ extern char *yp_dir; extern pid_t yp_pid; extern enum ypstat yp_errno; -extern void yp_error __P((const char *, ...)) __printflike(1, 2); +extern void yp_error(const char *, ...) __printflike(1, 2); #ifdef DB_CACHE -extern int yp_get_record __P(( DB *, const DBT *, DBT *, int)); +extern int yp_get_record(DB *, const DBT *, DBT *, int); #else -extern int yp_get_record __P(( const char *, const char *, const DBT *, DBT *, int)); +extern int yp_get_record(const char *, const char *, const DBT *, DBT *, int); #endif -extern int yp_first_record __P((const DB *, DBT *, DBT *, int)); -extern int yp_next_record __P((const DB *, DBT *, DBT *, int, int)); -extern char *yp_dnsname __P(( char * )); -extern char *yp_dnsaddr __P(( const char * )); +extern int yp_first_record(const DB *, DBT *, DBT *, int); +extern int yp_next_record(const DB *, DBT *, DBT *, int, int); +extern char *yp_dnsname(char *); +extern char *yp_dnsaddr(const char *); #ifdef DB_CACHE -extern int yp_access __P((const char *, const char *, const struct svc_req * )); +extern int yp_access(const char *, const char *, const struct svc_req *); #else -extern int yp_access __P((const char *, const struct svc_req * )); +extern int yp_access(const char *, const struct svc_req *); #endif -extern int yp_validdomain __P((const char * )); -extern DB *yp_open_db __P(( const char *, const char *)); -extern DB *yp_open_db_cache __P(( const char *, const char *, const char *, int )); -extern void yp_flush_all __P(( void )); -extern void yp_init_dbs __P(( void )); -extern int yp_testflag __P(( char *, char *, int )); -extern void load_securenets __P(( void )); +extern int yp_validdomain(const char *); +extern DB *yp_open_db(const char *, const char *); +extern DB *yp_open_db_cache(const char *, const char *, const char *, int); +extern void yp_flush_all(void); +extern void yp_init_dbs(void); +extern int yp_testflag(char *, char *, int); +extern void load_securenets(void); #ifdef DB_CACHE -extern ypstat yp_select_map __P(( char *, char *, keydat *, int )); -extern ypstat yp_getbykey __P(( keydat *, valdat * )); -extern ypstat yp_firstbykey __P(( keydat *, valdat * )); -extern ypstat yp_nextbykey __P(( keydat *, valdat * )); +extern ypstat yp_select_map(char *, char *, keydat *, int); +extern ypstat yp_getbykey(keydat *, valdat *); +extern ypstat yp_firstbykey(keydat *, valdat *); +extern ypstat yp_nextbykey(keydat *, valdat *); #endif -extern unsigned long svcudp_set_xid __P(( SVCXPRT *, unsigned long )); -extern unsigned long svcudp_get_xid __P(( SVCXPRT * )); +extern unsigned long svcudp_set_xid(SVCXPRT *, unsigned long); +extern unsigned long svcudp_get_xid(SVCXPRT *); #ifndef RESOLVER_TIMEOUT #define RESOLVER_TIMEOUT 3600 #endif -extern int yp_init_resolver __P(( void )); -extern void yp_run_dnsq __P(( void )); -extern void yp_prune_dnsq __P(( void )); -extern ypstat yp_async_lookup_name __P(( struct svc_req *, char * )); -extern ypstat yp_async_lookup_addr __P(( struct svc_req *, char * )); +extern int yp_init_resolver(void); +extern void yp_run_dnsq(void); +extern void yp_prune_dnsq(void); +extern ypstat yp_async_lookup_name(struct svc_req *, char *); +extern ypstat yp_async_lookup_addr(struct svc_req *, char *); |