gio static fixups

This commit is contained in:
Ryan Lortie 2011-10-16 21:24:45 -04:00
parent 740eacbfca
commit 09429e2c82
11 changed files with 13 additions and 8 deletions

View File

@ -434,7 +434,7 @@ unwrap_fake_maybe (GVariant **value)
*value = tmp; *value = tmp;
} }
RemoteActionInfo * static RemoteActionInfo *
remote_action_info_new_from_iter (GVariantIter *iter) remote_action_info_new_from_iter (GVariantIter *iter)
{ {
RemoteActionInfo *info; RemoteActionInfo *info;

View File

@ -1028,7 +1028,7 @@ g_io_extension_point_get_required_type (GIOExtensionPoint *extension_point)
return extension_point->required_type; return extension_point->required_type;
} }
void static void
lazy_load_modules (GIOExtensionPoint *extension_point) lazy_load_modules (GIOExtensionPoint *extension_point)
{ {
GIOModule *module; GIOModule *module;

View File

@ -168,7 +168,7 @@ convert_path (GKeyfileSettingsBackend *kfsb,
return TRUE; return TRUE;
} }
gboolean static gboolean
path_is_valid (GKeyfileSettingsBackend *kfsb, path_is_valid (GKeyfileSettingsBackend *kfsb,
const gchar *path) const gchar *path)
{ {

View File

@ -794,6 +794,7 @@ typedef struct {
} GNetworkAddressAddressEnumeratorClass; } GNetworkAddressAddressEnumeratorClass;
static GType _g_network_address_address_enumerator_get_type (void);
G_DEFINE_TYPE (GNetworkAddressAddressEnumerator, _g_network_address_address_enumerator, G_TYPE_SOCKET_ADDRESS_ENUMERATOR) G_DEFINE_TYPE (GNetworkAddressAddressEnumerator, _g_network_address_address_enumerator, G_TYPE_SOCKET_ADDRESS_ENUMERATOR)
static void static void

View File

@ -405,6 +405,7 @@ typedef struct {
} GNetworkServiceAddressEnumeratorClass; } GNetworkServiceAddressEnumeratorClass;
static GType _g_network_service_address_enumerator_get_type (void);
G_DEFINE_TYPE (GNetworkServiceAddressEnumerator, _g_network_service_address_enumerator, G_TYPE_SOCKET_ADDRESS_ENUMERATOR) G_DEFINE_TYPE (GNetworkServiceAddressEnumerator, _g_network_service_address_enumerator, G_TYPE_SOCKET_ADDRESS_ENUMERATOR)
static GSocketAddress * static GSocketAddress *

View File

@ -20,6 +20,8 @@
#include "config.h" #include "config.h"
#include "gsettingsschema.h" #include "gsettingsschema.h"
#include "gsettings.h"
#include "gvdb/gvdb-reader.h" #include "gvdb/gvdb-reader.h"
#include <glibintl.h> #include <glibintl.h>

View File

@ -80,7 +80,7 @@ g_simple_action_get_name (GAction *action)
return simple->name; return simple->name;
} }
const GVariantType * static const GVariantType *
g_simple_action_get_parameter_type (GAction *action) g_simple_action_get_parameter_type (GAction *action)
{ {
GSimpleAction *simple = G_SIMPLE_ACTION (action); GSimpleAction *simple = G_SIMPLE_ACTION (action);

View File

@ -315,6 +315,7 @@ typedef struct {
} GSocketAddressAddressEnumeratorClass; } GSocketAddressAddressEnumeratorClass;
static GType _g_socket_address_address_enumerator_get_type (void);
G_DEFINE_TYPE (GSocketAddressAddressEnumerator, _g_socket_address_address_enumerator, G_TYPE_SOCKET_ADDRESS_ENUMERATOR) G_DEFINE_TYPE (GSocketAddressAddressEnumerator, _g_socket_address_address_enumerator, G_TYPE_SOCKET_ADDRESS_ENUMERATOR)
static void static void

View File

@ -138,7 +138,7 @@ create_socket (GSocketClient *client,
return socket; return socket;
} }
gboolean static gboolean
can_use_proxy (GSocketClient *client) can_use_proxy (GSocketClient *client)
{ {
GSocketClientPrivate *priv = client->priv; GSocketClientPrivate *priv = client->priv;

View File

@ -203,7 +203,7 @@ g_srv_target_get_weight (GSrvTarget *target)
return target->weight; return target->weight;
} }
gint static gint
compare_target (gconstpointer a, gconstpointer b) compare_target (gconstpointer a, gconstpointer b)
{ {
GSrvTarget *ta = (GSrvTarget *)a; GSrvTarget *ta = (GSrvTarget *)a;

View File

@ -209,7 +209,7 @@ g_tls_certificate_new_internal (const gchar *certificate_pem,
#define PEM_PRIVKEY_HEADER "-----BEGIN RSA PRIVATE KEY-----" #define PEM_PRIVKEY_HEADER "-----BEGIN RSA PRIVATE KEY-----"
#define PEM_PRIVKEY_FOOTER "-----END RSA PRIVATE KEY-----" #define PEM_PRIVKEY_FOOTER "-----END RSA PRIVATE KEY-----"
gchar * static gchar *
parse_private_key (const gchar *data, parse_private_key (const gchar *data,
gsize data_len, gsize data_len,
gboolean required, gboolean required,
@ -243,7 +243,7 @@ parse_private_key (const gchar *data,
} }
gchar * static gchar *
parse_next_pem_certificate (const gchar **data, parse_next_pem_certificate (const gchar **data,
const gchar *data_end, const gchar *data_end,
gboolean required, gboolean required,