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:
parent
e43dbc5460
commit
e6f38a9910
6 changed files with 11 additions and 13 deletions
|
@ -100,7 +100,7 @@ static void _FreeCallbackInfo(_CallbackInfo *ptr);
|
||||||
* Register rpc service for server callback
|
* Register rpc service for server callback
|
||||||
*/
|
*/
|
||||||
extern void
|
extern void
|
||||||
_DtCm_init_agent()
|
_DtCm_init_agent(void)
|
||||||
{
|
{
|
||||||
int s = RPC_ANYSOCK;
|
int s = RPC_ANYSOCK;
|
||||||
|
|
||||||
|
@ -178,7 +178,7 @@ _DtCm_init_agent()
|
||||||
* Unregister with the rpc service.
|
* Unregister with the rpc service.
|
||||||
*/
|
*/
|
||||||
extern void
|
extern void
|
||||||
_DtCm_destroy_agent()
|
_DtCm_destroy_agent(void)
|
||||||
{
|
{
|
||||||
if (mapped == 0)
|
if (mapped == 0)
|
||||||
return;
|
return;
|
||||||
|
@ -198,7 +198,7 @@ _DtCm_destroy_agent()
|
||||||
}
|
}
|
||||||
|
|
||||||
extern void
|
extern void
|
||||||
_DtCm_process_updates()
|
_DtCm_process_updates(void)
|
||||||
{
|
{
|
||||||
#if defined(CSRG_BASED) || defined(__linux__)
|
#if defined(CSRG_BASED) || defined(__linux__)
|
||||||
int i, nfd;
|
int i, nfd;
|
||||||
|
@ -460,7 +460,7 @@ gettransient (int proto, u_long vers, int *sockp)
|
||||||
#endif /* not SunOS */
|
#endif /* not SunOS */
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_DtCm_handle_callback()
|
_DtCm_handle_callback(void)
|
||||||
{
|
{
|
||||||
_CallbackInfo *ptr, *prev;
|
_CallbackInfo *ptr, *prev;
|
||||||
boolean_t keep = B_FALSE;
|
boolean_t keep = B_FALSE;
|
||||||
|
|
|
@ -339,7 +339,7 @@ _DtCm_free_abbrev_appt4(Abb_Appt_4 *a)
|
||||||
}
|
}
|
||||||
|
|
||||||
Attribute_4 *
|
Attribute_4 *
|
||||||
_DtCm_make_attr4()
|
_DtCm_make_attr4(void)
|
||||||
{
|
{
|
||||||
Attribute_4 *a;
|
Attribute_4 *a;
|
||||||
|
|
||||||
|
|
|
@ -130,7 +130,7 @@ _DtCm_free_cms_entries(cms_entry *entry)
|
||||||
}
|
}
|
||||||
|
|
||||||
extern void
|
extern void
|
||||||
_DtCm_init_hash()
|
_DtCm_init_hash(void)
|
||||||
{
|
{
|
||||||
static boolean_t done = B_FALSE;
|
static boolean_t done = B_FALSE;
|
||||||
|
|
||||||
|
|
|
@ -225,9 +225,7 @@ void _DtCmDestroyHash(void * t, int (*ptr)(), void * usr_arg)
|
||||||
free(tbl);
|
free(tbl);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int hash_string(s,modulo)
|
static int hash_string(char *s, int modulo)
|
||||||
register char *s;
|
|
||||||
int modulo;
|
|
||||||
{
|
{
|
||||||
register unsigned result = 0;
|
register unsigned result = 0;
|
||||||
register int i=1;
|
register int i=1;
|
||||||
|
|
|
@ -75,7 +75,7 @@ _DtCmGetPrefix(char *str, char sep)
|
||||||
}
|
}
|
||||||
|
|
||||||
extern char *
|
extern char *
|
||||||
_DtCmGetLocalHost()
|
_DtCmGetLocalHost(void)
|
||||||
{
|
{
|
||||||
static char *host = NULL;
|
static char *host = NULL;
|
||||||
|
|
||||||
|
@ -136,7 +136,7 @@ _DtCmGetLocalDomain(char *hostname)
|
||||||
}
|
}
|
||||||
|
|
||||||
extern char *
|
extern char *
|
||||||
_DtCmGetHostAtDomain()
|
_DtCmGetHostAtDomain(void)
|
||||||
{
|
{
|
||||||
static char *hostname = NULL;
|
static char *hostname = NULL;
|
||||||
char *host;
|
char *host;
|
||||||
|
@ -157,7 +157,7 @@ _DtCmGetHostAtDomain()
|
||||||
}
|
}
|
||||||
|
|
||||||
extern char *
|
extern char *
|
||||||
_DtCmGetUserName()
|
_DtCmGetUserName(void)
|
||||||
{
|
{
|
||||||
static char *name = NULL;
|
static char *name = NULL;
|
||||||
_Xgetpwparams pwd_buf;
|
_Xgetpwparams pwd_buf;
|
||||||
|
|
|
@ -68,7 +68,7 @@ char *_DtCm_rule_buf;
|
||||||
char _DtCm_yytext[128];
|
char _DtCm_yytext[128];
|
||||||
|
|
||||||
int
|
int
|
||||||
_DtCm_yylex()
|
_DtCm_yylex(void)
|
||||||
{
|
{
|
||||||
int token = 0;
|
int token = 0;
|
||||||
int yylen = 128;
|
int yylen = 128;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue