[libgrss] feeds-publisher: Fix old-style function definitions
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgrss] feeds-publisher: Fix old-style function definitions
- Date: Fri, 17 Feb 2017 11:03:09 +0000 (UTC)
commit 3fda353310ccac2dc99c0083c90ebbd5fb67ac15
Author: Philip Withnall <philip tecnocode co uk>
Date: Thu Feb 16 21:54:52 2017 +0000
feeds-publisher: Fix old-style function definitions
These functions accept no arguments, not an undefined set of arguments.
Signed-off-by: Philip Withnall <philip tecnocode co uk>
https://bugzilla.gnome.org/show_bug.cgi?id=778796
src/feeds-publisher.c | 6 +++---
src/feeds-publisher.h | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/feeds-publisher.c b/src/feeds-publisher.c
index 2c919c6..427a54f 100644
--- a/src/feeds-publisher.c
+++ b/src/feeds-publisher.c
@@ -102,7 +102,7 @@ enum {
G_DEFINE_TYPE (GrssFeedsPublisher, grss_feeds_publisher, G_TYPE_OBJECT);
static GQuark
-feeds_publisher_error_quark ()
+feeds_publisher_error_quark (void)
{
return g_quark_from_static_string ("feeds_publisher_error");
}
@@ -219,7 +219,7 @@ grss_feeds_publisher_init (GrssFeedsPublisher *node)
* Returns: a new #GrssFeedsPublisher.
*/
GrssFeedsPublisher*
-grss_feeds_publisher_new ()
+grss_feeds_publisher_new (void)
{
return g_object_new (FEEDS_PUBLISHER_TYPE, NULL);
}
@@ -624,7 +624,7 @@ remove_client_to_topic (GrssFeedsPublisher *pub, RemoteSubscriber *client)
}
static gchar*
-random_string ()
+random_string (void)
{
register int i;
gchar str [50];
diff --git a/src/feeds-publisher.h b/src/feeds-publisher.h
index d47bac8..a20b8b0 100644
--- a/src/feeds-publisher.h
+++ b/src/feeds-publisher.h
@@ -45,9 +45,9 @@ typedef struct {
void (*delete_subscription) (GrssFeedsPublisher *pub, GrssFeedChannel *topic, gchar *callback);
} GrssFeedsPublisherClass;
-GType grss_feeds_publisher_get_type () G_GNUC_CONST;
+GType grss_feeds_publisher_get_type (void) G_GNUC_CONST;
-GrssFeedsPublisher* grss_feeds_publisher_new ();
+GrssFeedsPublisher* grss_feeds_publisher_new (void);
gchar* grss_feeds_publisher_format_content (GrssFeedsPublisher *pub, GrssFeedChannel
*channel, GList *items, GError **error);
gboolean grss_feeds_publisher_publish_web (GrssFeedsPublisher *pub, GrssFeedChannel
*channel, GList *items, const gchar *id, GError **error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]