diff options
author | Peter Williams <peterw@src.gnome.org> | 2000-08-12 00:40:32 +0800 |
---|---|---|
committer | Peter Williams <peterw@src.gnome.org> | 2000-08-12 00:40:32 +0800 |
commit | 49b857afdc3fc45b8f2572c653f5d8a0edb6804e (patch) | |
tree | 7ada73742bd9d889e5e41d57ca53ad53d97c2350 | |
parent | b1d061b7752cc29e0a05c26e8ed16e0a274276a1 (diff) | |
download | gsoc2013-evolution-49b857afdc3fc45b8f2572c653f5d8a0edb6804e.tar gsoc2013-evolution-49b857afdc3fc45b8f2572c653f5d8a0edb6804e.tar.gz gsoc2013-evolution-49b857afdc3fc45b8f2572c653f5d8a0edb6804e.tar.bz2 gsoc2013-evolution-49b857afdc3fc45b8f2572c653f5d8a0edb6804e.tar.lz gsoc2013-evolution-49b857afdc3fc45b8f2572c653f5d8a0edb6804e.tar.xz gsoc2013-evolution-49b857afdc3fc45b8f2572c653f5d8a0edb6804e.tar.zst gsoc2013-evolution-49b857afdc3fc45b8f2572c653f5d8a0edb6804e.zip |
Fix some ()'s instead of voids
svn path=/trunk/; revision=4741
-rw-r--r-- | mail/ChangeLog | 7 | ||||
-rw-r--r-- | mail/mail-config.c | 32 | ||||
-rw-r--r-- | mail/mail-config.h | 2 |
3 files changed, 25 insertions, 16 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index 3db9625338..94939c2c05 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,10 @@ +2000-08-11 Peter Williams <peterw@helixcode.com> + + * mail-config.c (mail_config_get_news): Change () to (void) + if a function takes no arguments. + + * mail-config.h: Prototype mail_config_get_{sources,news}x + 2000-08-11 JP Rosevear <jpr@helixcode.com> * mail-config-gui.c (identity_dialog): sdialog, not iddialog diff --git a/mail/mail-config.c b/mail/mail-config.c index 976f6a1765..2287726380 100644 --- a/mail/mail-config.c +++ b/mail/mail-config.c @@ -126,7 +126,7 @@ service_destroy_each (gpointer item, gpointer data) /* Config struct routines */ void -mail_config_init () +mail_config_init (void) { if (config) return; @@ -141,7 +141,7 @@ mail_config_init () } void -mail_config_clear () +mail_config_clear (void) { if (!config) return; @@ -169,7 +169,7 @@ mail_config_clear () } static void -config_read () +config_read (void) { gchar *str; gint len, i; @@ -282,7 +282,7 @@ config_read () } void -mail_config_write () +mail_config_write (void) { gchar *str; gint len, i; @@ -378,7 +378,7 @@ mail_config_write () } void -mail_config_write_on_exit () +mail_config_write_on_exit (void) { gchar *str; @@ -399,13 +399,13 @@ mail_config_write_on_exit () /* Accessor functions */ gboolean -mail_config_is_configured () +mail_config_is_configured (void) { return config->configured; } gboolean -mail_config_thread_list () +mail_config_thread_list (void) { return config->thread_list; } @@ -417,7 +417,7 @@ mail_config_set_thread_list (gboolean value) } gint -mail_config_paned_size () +mail_config_paned_size (void) { return config->paned_size; } @@ -429,7 +429,7 @@ mail_config_set_paned_size (gint value) } gboolean -mail_config_send_html () +mail_config_send_html (void) { return config->send_html; } @@ -441,7 +441,7 @@ mail_config_set_send_html (gboolean send_html) } MailConfigIdentity * -mail_config_get_default_identity () +mail_config_get_default_identity (void) { if (!config->ids) return NULL; @@ -450,7 +450,7 @@ mail_config_get_default_identity () } GSList * -mail_config_get_identities () +mail_config_get_identities (void) { return config->ids; } @@ -462,7 +462,7 @@ mail_config_add_identity (MailConfigIdentity *id) } MailConfigService * -mail_config_get_default_source () +mail_config_get_default_source (void) { if (!config->sources) return NULL; @@ -471,7 +471,7 @@ mail_config_get_default_source () } GSList * -mail_config_get_sources () +mail_config_get_sources (void) { return config->sources; } @@ -483,7 +483,7 @@ mail_config_add_source (MailConfigService *source) } MailConfigService * -mail_config_get_transport () +mail_config_get_transport (void) { return config->transport; } @@ -498,7 +498,7 @@ mail_config_set_transport (MailConfigService *transport) } MailConfigService * -mail_config_get_default_news () +mail_config_get_default_news (void) { if (!config->sources) return NULL; @@ -507,7 +507,7 @@ mail_config_get_default_news () } GSList * -mail_config_get_news () +mail_config_get_news (void) { return config->news; } diff --git a/mail/mail-config.h b/mail/mail-config.h index e2ec379bb2..a529164400 100644 --- a/mail/mail-config.h +++ b/mail/mail-config.h @@ -72,9 +72,11 @@ GSList *mail_config_get_identities (void); /* Service Accessor functions */ MailConfigService *mail_config_get_default_source (void); +GSList *mail_config_get_sources (void); void mail_config_add_source (MailConfigService *source); MailConfigService *mail_config_get_transport (void); +GSList *mail_config_get_news (void); void mail_config_set_transport (MailConfigService *transport); MailConfigService *mail_config_get_default_news (void); |