Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix some compilation warnings

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
  • Loading branch information...
commit b1d1345514f1a7f53f059083718c7a5f3a9d6478 1 parent 85b551e
@felipec authored
Showing with 10 additions and 6 deletions.
  1. +1 −1  io/pn_ssl_conn.c
  2. +5 −1 msn.c
  3. +2 −2 pn_util.c
  4. +2 −2 switchboard.c
View
2  io/pn_ssl_conn.c
@@ -334,7 +334,7 @@ write_impl (PnNode *conn,
if (status == G_IO_STATUS_NORMAL)
{
- if (bytes_written < count)
+ if (bytes_written < (int) count)
{
/* This shouldn't happen, right? */
pn_error ("write check: %d < %zu", bytes_written, count);
View
6 msn.c
@@ -507,7 +507,7 @@ new_chat (MsnSession *session,
return swboard;
}
-const char *get_my_alias(MsnSession *session)
+static const char *get_my_alias(MsnSession *session)
{
const char *alias;
PurpleAccount *account = msn_session_get_user_data(session);
@@ -1951,6 +1951,8 @@ init_plugin (PurplePlugin *plugin)
#ifndef STATIC_PECAN
G_MODULE_EXPORT gboolean
+purple_init_plugin(PurplePlugin *plugin);
+G_MODULE_EXPORT gboolean
purple_init_plugin(PurplePlugin *plugin)
{
plugin->info = &info;
@@ -1959,6 +1961,8 @@ purple_init_plugin(PurplePlugin *plugin)
}
#else
gboolean
+purple_init_msn_pecan_plugin(void);
+gboolean
purple_init_msn_pecan_plugin(void)
{
PurplePlugin *plugin = purple_plugin_new(TRUE, NULL);
View
4 pn_util.c
@@ -41,7 +41,7 @@ struct PlusTag
int len;
};
-gboolean
+static gboolean
check_if_first_char_str_is_number (const gchar* str)
{
if (strncmp (str, "0", 1) == 0 || strncmp (str, "1", 1) == 0 ||
@@ -905,7 +905,7 @@ pn_html_unescape (const char *url)
{ "reg", "®" },
{ "apos", "'" },
};
- int i;
+ unsigned i;
for (i = 0; i < ARRAY_SIZE(refs); i++) {
struct ref ref = refs[i];
int len = strlen(ref.name);
View
4 switchboard.c
@@ -206,7 +206,7 @@ msn_switchboard_new(MsnSession *session)
return swboard;
}
-void
+static void
msn_switchboard_free (MsnSwitchBoard *swboard)
{
MsnMessage *msg;
@@ -1613,7 +1613,7 @@ emoticon_msg(MsnCmdProc *cmdproc,
}
#ifdef HAVE_LIBPURPLE
-void
+static void
invite_msg (MsnCmdProc *cmdproc, MsnMessage *msg)
{
GHashTable *body;
Please sign in to comment.
Something went wrong with that request. Please try again.