libcsa: Change to ANSI function definitions
authorPeter Howkins <flibble@users.sf.net>
Thu, 28 Jun 2018 02:54:49 +0000 (03:54 +0100)
committerPeter Howkins <flibble@users.sf.net>
Thu, 28 Jun 2018 02:54:49 +0000 (03:54 +0100)
cde/lib/csa/agent.c
cde/lib/csa/appt4.c
cde/lib/csa/cmsdata.c
cde/lib/csa/hash.c
cde/lib/csa/lutil.c
cde/lib/csa/rescan.c

index 888bdf39401c4daecabe46434cd29651e99ffae4..1f521aa5f0c104fe9869a1a21dcb3da8c56d81d3 100644 (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;
index b5922bbd10af8bdb70e19480833e7abc79718774..cba01533c8c653ab15d41c423c771d62fdb776b4 100644 (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;
        
index 4581f180c9a0e53e5f75669daaecda427aa103d2..947a0de6c1cc44a6791f7af608502f6d6e16b3fa 100644 (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;
 
index c8e8ef88e04a40ab9eddb54f00d04d75c90eea38..2b16e017b3d9e8aa56ab9a68769848e309c8669c 100644 (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;
index c7eb6b510ea64b1cc3e8ba9764085c8775321fab..0ec4a31ebd5b1dac57854ea0dea4a837450bfcfa 100644 (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;
index 369dc618721164e14d9f6fa8a6f4ac84d0b9c715..623d0cb4b89e14a39d0ba093ac497d4a9d7b561c 100644 (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;