poke-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Change functions to take void instead of ...


From: John Darrington
Subject: [PATCH] Change functions to take void instead of ...
Date: Sat, 25 Apr 2020 09:19:41 +0200

Change signature of numerous functions to take void instead of an
unspecified number of arbitrary parameters.
---
 src/pk-hserver.c | 4 ++--
 src/poke.c       | 8 ++++----
 src/poke.h       | 2 +-
 3 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/pk-hserver.c b/src/pk-hserver.c
index 7de736d0..63ecf102 100644
--- a/src/pk-hserver.c
+++ b/src/pk-hserver.c
@@ -263,7 +263,7 @@ hserver_thread_worker (void *data)
 }
 
 void
-pk_hserver_init ()
+pk_hserver_init (void)
 {
   int ret;
   int i;
@@ -307,7 +307,7 @@ pk_hserver_init ()
 }
 
 void
-pk_hserver_shutdown ()
+pk_hserver_shutdown (void)
 {
   int ret;
   void *res;
diff --git a/src/poke.c b/src/poke.c
index 0919d75f..4d47997e 100644
--- a/src/poke.c
+++ b/src/poke.c
@@ -131,7 +131,7 @@ static const struct option long_options[] =
 };
 
 static void
-print_help ()
+print_help (void)
 {
   /* TRANSLATORS: --help output, GNU poke synopsis.
      no-wrap */
@@ -191,7 +191,7 @@ Report bugs to: %s\n"), PACKAGE_BUGREPORT);
 }
 
 void
-pk_print_version ()
+pk_print_version (void)
 {
   pk_term_class ("logo");
   pk_puts ("     _____\n");
@@ -233,7 +233,7 @@ Perpetrated by Jose E. Marchesi.\n"));
 }
 
 static void
-finalize ()
+finalize (void)
 {
 #ifdef HAVE_HSERVER
   if (poke_hserver_p)
@@ -425,7 +425,7 @@ initialize (int argc, char *argv[])
 }
 
 static void
-initialize_user ()
+initialize_user (void)
 {
   /* Load the user's initialization file ~/.pokerc, if it exists in
      the HOME directory.  */
diff --git a/src/poke.h b/src/poke.h
index 71f6eb5e..7a68caf5 100644
--- a/src/poke.h
+++ b/src/poke.h
@@ -37,6 +37,6 @@ extern char *poke_picklesdir;
 extern char *poke_cmdsdir;
 extern char *poke_doc_viewer;
 
-void pk_print_version ();
+void pk_print_version (void);
 
 #endif /* !POKE_H */
-- 
2.20.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]