1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

libcsa: Change to ANSI function definitions

This commit is contained in:
Peter Howkins 2018-06-28 03:54:49 +01:00
parent e43dbc5460
commit e6f38a9910
6 changed files with 11 additions and 13 deletions

View file

@ -100,7 +100,7 @@ static void _FreeCallbackInfo(_CallbackInfo *ptr);
* Register rpc service for server callback
*/
extern void
_DtCm_init_agent()
_DtCm_init_agent(void)
{
int s = RPC_ANYSOCK;
@ -178,7 +178,7 @@ _DtCm_init_agent()
* Unregister with the rpc service.
*/
extern void
_DtCm_destroy_agent()
_DtCm_destroy_agent(void)
{
if (mapped == 0)
return;
@ -198,7 +198,7 @@ _DtCm_destroy_agent()
}
extern void
_DtCm_process_updates()
_DtCm_process_updates(void)
{
#if defined(CSRG_BASED) || defined(__linux__)
int i, nfd;
@ -460,7 +460,7 @@ gettransient (int proto, u_long vers, int *sockp)
#endif /* not SunOS */
static void
_DtCm_handle_callback()
_DtCm_handle_callback(void)
{
_CallbackInfo *ptr, *prev;
boolean_t keep = B_FALSE;

View file

@ -339,7 +339,7 @@ _DtCm_free_abbrev_appt4(Abb_Appt_4 *a)
}
Attribute_4 *
_DtCm_make_attr4()
_DtCm_make_attr4(void)
{
Attribute_4 *a;

View file

@ -130,7 +130,7 @@ _DtCm_free_cms_entries(cms_entry *entry)
}
extern void
_DtCm_init_hash()
_DtCm_init_hash(void)
{
static boolean_t done = B_FALSE;

View file

@ -225,9 +225,7 @@ void _DtCmDestroyHash(void * t, int (*ptr)(), void * usr_arg)
free(tbl);
}
static int hash_string(s,modulo)
register char *s;
int modulo;
static int hash_string(char *s, int modulo)
{
register unsigned result = 0;
register int i=1;

View file

@ -75,7 +75,7 @@ _DtCmGetPrefix(char *str, char sep)
}
extern char *
_DtCmGetLocalHost()
_DtCmGetLocalHost(void)
{
static char *host = NULL;
@ -136,7 +136,7 @@ _DtCmGetLocalDomain(char *hostname)
}
extern char *
_DtCmGetHostAtDomain()
_DtCmGetHostAtDomain(void)
{
static char *hostname = NULL;
char *host;
@ -157,7 +157,7 @@ _DtCmGetHostAtDomain()
}
extern char *
_DtCmGetUserName()
_DtCmGetUserName(void)
{
static char *name = NULL;
_Xgetpwparams pwd_buf;

View file

@ -68,7 +68,7 @@ char *_DtCm_rule_buf;
char _DtCm_yytext[128];
int
_DtCm_yylex()
_DtCm_yylex(void)
{
int token = 0;
int yylen = 128;