aboutsummaryrefslogtreecommitdiff
path: root/dico
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2018-09-03 13:46:54 +0300
committerSergey Poznyakoff <gray@gnu.org>2018-09-03 13:46:54 +0300
commit72eded53bf28423118e4bbec402578a74c88d946 (patch)
treea85a1b03fd91438b5c2efd874a5dcb2aa13fbdd7 /dico
parentf8c9564a5473d10954ca5cf914064947ca53780c (diff)
downloaddico-72eded53bf28423118e4bbec402578a74c88d946.tar.gz
dico-72eded53bf28423118e4bbec402578a74c88d946.tar.bz2
Minor stylistic change
Diffstat (limited to 'dico')
-rw-r--r--dico/connect.c2
-rw-r--r--dico/dico.c2
-rw-r--r--dico/func.c6
-rw-r--r--dico/pager.c4
-rw-r--r--dico/saslauth.c4
-rw-r--r--dico/shell.c6
6 files changed, 12 insertions, 12 deletions
diff --git a/dico/connect.c b/dico/connect.c
index 13b1155..1344ddc 100644
--- a/dico/connect.c
+++ b/dico/connect.c
@@ -131,7 +131,7 @@ dict_auth(struct dict_connection *conn, dico_url_t url)
}
char *
-get_homedir()
+get_homedir(void)
{
char *homedir = getenv("HOME");
if (!homedir) {
diff --git a/dico/dico.c b/dico/dico.c
index bc5dbf8..2d375b4 100644
--- a/dico/dico.c
+++ b/dico/dico.c
@@ -33,7 +33,7 @@ dico_stream_t debug_stream;
void
-fixup_url()
+fixup_url(void)
{
xdico_assign_string(&dico_url.proto, "dict");
if (!dico_url.host)
diff --git a/dico/func.c b/dico/func.c
index 30a42b1..8be3078 100644
--- a/dico/func.c
+++ b/dico/func.c
@@ -37,7 +37,7 @@ set_bool(int *pval, char *str)
}
void
-ds_silent_close()
+ds_silent_close(void)
{
if (conn) {
stream_printf(conn->str, "QUIT\r\n");
@@ -72,7 +72,7 @@ get_list(struct dict_result **pres, char *cmd, char *code)
}
void
-check_disconnect()
+check_disconnect(void)
{
if (conn) {
int rc;
@@ -96,7 +96,7 @@ check_disconnect()
}
int
-ensure_connection()
+ensure_connection(void)
{
check_disconnect();
if (!conn) {
diff --git a/dico/pager.c b/dico/pager.c
index ef7e981..856e99f 100644
--- a/dico/pager.c
+++ b/dico/pager.c
@@ -20,7 +20,7 @@
static char *pager;
static char *
-get_pager_name()
+get_pager_name(void)
{
if (pager) {
if (strcmp(pager, "-") == 0)
@@ -46,7 +46,7 @@ ds_pager(int argc, char **argv)
dico_stream_t
-create_output_stream()
+create_output_stream(void)
{
return dico_fd_stream_create(fileno(stdout), DICO_STREAM_WRITE, 1);
}
diff --git a/dico/saslauth.c b/dico/saslauth.c
index 660fe70..1adf8f3 100644
--- a/dico/saslauth.c
+++ b/dico/saslauth.c
@@ -356,7 +356,7 @@ sasl_enable(int val)
}
int
-sasl_enabled_p()
+sasl_enabled_p(void)
{
return sasl_enable_state;
}
@@ -375,7 +375,7 @@ sasl_enable(int val)
}
int
-sasl_enabled_p()
+sasl_enabled_p(void)
{
return 0;
}
diff --git a/dico/shell.c b/dico/shell.c
index 2555117..39d4cfb 100644
--- a/dico/shell.c
+++ b/dico/shell.c
@@ -406,7 +406,7 @@ parse_init_script(const char *name)
}
void
-parse_init_scripts()
+parse_init_scripts(void)
{
char *name = dico_full_file_name(get_homedir(), ".dico");
parse_init_script(name);
@@ -493,7 +493,7 @@ _command_completion(const char *cmd, int start, int end)
#define HISTFILE_SUFFIX "_history"
static char *
-get_history_file_name()
+get_history_file_name(void)
{
static char *filename = NULL;
@@ -638,7 +638,7 @@ shell_getline(void *data, char **buf)
}
void
-dico_shell()
+dico_shell(void)
{
struct init_script dat;
shell_init(&dat);

Return to:

Send suggestions and report system problems to the System administrator.