[file-roller] fixed missing prototype warning
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [file-roller] fixed missing prototype warning
- Date: Thu, 28 Jun 2012 07:20:44 +0000 (UTC)
commit fe3e6aa60ff370fb21475cf621fd86ad78c9303a
Author: Paolo Bacchilega <paobac src gnome org>
Date: Thu Jun 28 09:15:32 2012 +0200
fixed missing prototype warning
src/dlg-add-files.c | 1 +
src/dlg-ask-password.c | 4 ++--
src/dlg-batch-add.c | 5 +++--
src/dlg-delete.c | 1 +
src/dlg-extract.c | 1 +
src/dlg-open-with.c | 1 +
src/dlg-password.c | 1 +
src/dlg-prop.c | 1 +
src/fr-command-7z.c | 4 ++--
src/fr-command-ace.c | 6 +++---
src/fr-command-alz.c | 6 +++---
src/fr-command-ar.c | 4 ++--
src/fr-command-arj.c | 4 ++--
src/fr-command-cfile.c | 4 ++--
src/fr-command-cpio.c | 4 ++--
src/fr-command-dpkg.c | 4 ++--
src/fr-command-iso.c | 4 ++--
src/fr-command-jar.c | 4 ++--
src/fr-command-lha.c | 4 ++--
src/fr-command-lrzip.c | 4 ++--
src/fr-command-rar.c | 4 ++--
src/fr-command-rpm.c | 4 ++--
src/fr-command-tar.c | 4 ++--
src/fr-command-unstuff.c | 4 ++--
src/fr-command-zip.c | 4 ++--
src/fr-command-zoo.c | 4 ++--
src/fr-command.c | 4 ++--
src/fr-init.c | 14 +++++++-------
src/fr-window.c | 2 +-
src/rar-utils.c | 1 +
30 files changed, 60 insertions(+), 52 deletions(-)
---
diff --git a/src/dlg-add-files.c b/src/dlg-add-files.c
index 28d0a30..afceefe 100644
--- a/src/dlg-add-files.c
+++ b/src/dlg-add-files.c
@@ -30,6 +30,7 @@
#include "glib-utils.h"
#include "gtk-utils.h"
#include "preferences.h"
+#include "dlg-add-files.h"
typedef struct {
diff --git a/src/dlg-ask-password.c b/src/dlg-ask-password.c
index 35fa965..8eb9899 100644
--- a/src/dlg-ask-password.c
+++ b/src/dlg-ask-password.c
@@ -21,12 +21,12 @@
#include <config.h>
#include <string.h>
-
#include <gtk/gtk.h>
+#include "dlg-ask-password.h"
#include "file-utils.h"
+#include "fr-window.h"
#include "glib-utils.h"
#include "gtk-utils.h"
-#include "fr-window.h"
typedef enum {
diff --git a/src/dlg-batch-add.c b/src/dlg-batch-add.c
index 49fd578..4e73295 100644
--- a/src/dlg-batch-add.c
+++ b/src/dlg-batch-add.c
@@ -25,14 +25,15 @@
#include <unistd.h>
#include <gio/gio.h>
#include <gtk/gtk.h>
+#include "dlg-batch-add.h"
#include "file-utils.h"
+#include "fr-init.h"
#include "fr-stock.h"
#include "fr-window.h"
-#include "typedefs.h"
#include "gtk-utils.h"
#include "glib-utils.h"
#include "preferences.h"
-#include "fr-init.h"
+#include "typedefs.h"
#define ARCHIVE_ICON_SIZE (48)
diff --git a/src/dlg-delete.c b/src/dlg-delete.c
index 401819b..20e17a4 100644
--- a/src/dlg-delete.c
+++ b/src/dlg-delete.c
@@ -24,6 +24,7 @@
#include "fr-window.h"
#include "glib-utils.h"
#include "gtk-utils.h"
+#include "dlg-delete.h"
typedef struct {
diff --git a/src/dlg-extract.c b/src/dlg-extract.c
index 5648a67..a13d385 100644
--- a/src/dlg-extract.c
+++ b/src/dlg-extract.c
@@ -29,6 +29,7 @@
#include "gtk-utils.h"
#include "fr-window.h"
#include "typedefs.h"
+#include "dlg-extract.h"
typedef struct {
diff --git a/src/dlg-open-with.c b/src/dlg-open-with.c
index 0d70f38..9d32a37 100644
--- a/src/dlg-open-with.c
+++ b/src/dlg-open-with.c
@@ -27,6 +27,7 @@
#include "gtk-utils.h"
#include "fr-init.h"
#include "fr-window.h"
+#include "dlg-open-with.h"
typedef struct {
diff --git a/src/dlg-password.c b/src/dlg-password.c
index 26ba71a..b8f290d 100644
--- a/src/dlg-password.c
+++ b/src/dlg-password.c
@@ -25,6 +25,7 @@
#include "fr-window.h"
#include "gtk-utils.h"
#include "preferences.h"
+#include "dlg-password.h"
typedef struct {
diff --git a/src/dlg-prop.c b/src/dlg-prop.c
index 26d39a0..addc2d2 100644
--- a/src/dlg-prop.c
+++ b/src/dlg-prop.c
@@ -26,6 +26,7 @@
#include "file-utils.h"
#include "gtk-utils.h"
#include "fr-window.h"
+#include "dlg-prop.h"
typedef struct {
diff --git a/src/fr-command-7z.c b/src/fr-command-7z.c
index 61db0ef..5980ec0 100644
--- a/src/fr-command-7z.c
+++ b/src/fr-command-7z.c
@@ -544,14 +544,14 @@ const char *sevenz_mime_types[] = { "application/x-7z-compressed",
NULL };
-const char **
+static const char **
fr_command_7z_get_mime_types (FrCommand *comm)
{
return sevenz_mime_types;
}
-FrCommandCap
+static FrCommandCap
fr_command_7z_get_capabilities (FrCommand *comm,
const char *mime_type,
gboolean check_command)
diff --git a/src/fr-command-ace.c b/src/fr-command-ace.c
index a604b4a..8536623 100644
--- a/src/fr-command-ace.c
+++ b/src/fr-command-ace.c
@@ -164,7 +164,7 @@ static void
list__begin (gpointer data)
{
FrCommandAce *comm = data;
-
+
comm->list_started = FALSE;
comm->command_type = FR_ACE_COMMAND_UNKNOWN;
}
@@ -237,14 +237,14 @@ fr_command_ace_handle_error (FrCommand *comm,
const char *ace_mime_type[] = { "application/x-ace", NULL };
-const char **
+static const char **
fr_command_ace_get_mime_types (FrCommand *comm)
{
return ace_mime_type;
}
-FrCommandCap
+static FrCommandCap
fr_command_ace_get_capabilities (FrCommand *comm,
const char *mime_type,
gboolean check_command)
diff --git a/src/fr-command-alz.c b/src/fr-command-alz.c
index 72902bd..b12af0e 100644
--- a/src/fr-command-alz.c
+++ b/src/fr-command-alz.c
@@ -202,7 +202,7 @@ static void
list__begin (gpointer data)
{
FrCommandAlz *comm = data;
-
+
comm->list_started = FALSE;
comm->invalid_password = FALSE;
}
@@ -300,14 +300,14 @@ fr_command_alz_handle_error (FrCommand *comm,
const char *alz_mime_type[] = { "application/x-alz", NULL };
-const char **
+static const char **
fr_command_alz_get_mime_types (FrCommand *comm)
{
return alz_mime_type;
}
-FrCommandCap
+static FrCommandCap
fr_command_alz_get_capabilities (FrCommand *comm,
const char *mime_type,
gboolean check_command)
diff --git a/src/fr-command-ar.c b/src/fr-command-ar.c
index c4d6def..09ec9aa 100644
--- a/src/fr-command-ar.c
+++ b/src/fr-command-ar.c
@@ -280,14 +280,14 @@ const char *ar_mime_type[] = { "application/x-ar",
NULL };
-const char **
+static const char **
fr_command_ar_get_mime_types (FrCommand *comm)
{
return ar_mime_type;
}
-FrCommandCap
+static FrCommandCap
fr_command_ar_get_capabilities (FrCommand *comm,
const char *mime_type,
gboolean check_command)
diff --git a/src/fr-command-arj.c b/src/fr-command-arj.c
index e3de7aa..867ba4b 100644
--- a/src/fr-command-arj.c
+++ b/src/fr-command-arj.c
@@ -318,14 +318,14 @@ fr_command_arj_handle_error (FrCommand *comm,
const char *arj_mime_type[] = { "application/x-arj", NULL };
-const char **
+static const char **
fr_command_arj_get_mime_types (FrCommand *comm)
{
return arj_mime_type;
}
-FrCommandCap
+static FrCommandCap
fr_command_arj_get_capabilities (FrCommand *comm,
const char *mime_type,
gboolean check_command)
diff --git a/src/fr-command-cfile.c b/src/fr-command-cfile.c
index 6221b70..ae834e7 100644
--- a/src/fr-command-cfile.c
+++ b/src/fr-command-cfile.c
@@ -465,14 +465,14 @@ const char *cfile_mime_type[] = { "application/x-gzip",
NULL };
-const char **
+static const char **
fr_command_cfile_get_mime_types (FrCommand *comm)
{
return cfile_mime_type;
}
-FrCommandCap
+static FrCommandCap
fr_command_cfile_get_capabilities (FrCommand *comm,
const char *mime_type,
gboolean check_command)
diff --git a/src/fr-command-cpio.c b/src/fr-command-cpio.c
index 7700ac2..21e681b 100644
--- a/src/fr-command-cpio.c
+++ b/src/fr-command-cpio.c
@@ -224,14 +224,14 @@ fr_command_cpio_extract (FrCommand *comm,
const char *cpio_mime_type[] = { "application/x-cpio", NULL };
-const char **
+static const char **
fr_command_cpio_get_mime_types (FrCommand *comm)
{
return cpio_mime_type;
}
-FrCommandCap
+static FrCommandCap
fr_command_cpio_get_capabilities (FrCommand *comm,
const char *mime_type,
gboolean check_command)
diff --git a/src/fr-command-dpkg.c b/src/fr-command-dpkg.c
index 4cd1739..5efcb79 100644
--- a/src/fr-command-dpkg.c
+++ b/src/fr-command-dpkg.c
@@ -209,14 +209,14 @@ fr_command_dpkg_extract (FrCommand *comm,
const char *dpkg_mime_type[] = { "application/x-deb", NULL };
-const char **
+static const char **
fr_command_dpkg_get_mime_types (FrCommand *comm)
{
return dpkg_mime_type;
}
-FrCommandCap
+static FrCommandCap
fr_command_dpkg_get_capabilities (FrCommand *comm,
const char *mime_type,
gboolean check_command)
diff --git a/src/fr-command-iso.c b/src/fr-command-iso.c
index 3cced06..39826ff 100644
--- a/src/fr-command-iso.c
+++ b/src/fr-command-iso.c
@@ -201,14 +201,14 @@ fr_command_iso_extract (FrCommand *comm,
const char *iso_mime_type[] = { "application/x-cd-image", NULL };
-const char **
+static const char **
fr_command_iso_get_mime_types (FrCommand *comm)
{
return iso_mime_type;
}
-FrCommandCap
+static FrCommandCap
fr_command_iso_get_capabilities (FrCommand *comm,
const char *mime_type,
gboolean check_command)
diff --git a/src/fr-command-jar.c b/src/fr-command-jar.c
index 147306b..50de842 100644
--- a/src/fr-command-jar.c
+++ b/src/fr-command-jar.c
@@ -150,14 +150,14 @@ const char *jar_mime_type[] = { "application/x-java-archive",
NULL };
-const char **
+static const char **
fr_command_jar_get_mime_types (FrCommand *comm)
{
return jar_mime_type;
}
-FrCommandCap
+static FrCommandCap
fr_command_jar_get_capabilities (FrCommand *comm,
const char *mime_type,
gboolean check_command)
diff --git a/src/fr-command-lha.c b/src/fr-command-lha.c
index 5dd13f1..0860065 100644
--- a/src/fr-command-lha.c
+++ b/src/fr-command-lha.c
@@ -303,14 +303,14 @@ fr_command_lha_extract (FrCommand *comm,
const char *lha_mime_type[] = { "application/x-lha", NULL };
-const char **
+static const char **
fr_command_lha_get_mime_types (FrCommand *comm)
{
return lha_mime_type;
}
-FrCommandCap
+static FrCommandCap
fr_command_lha_get_capabilities (FrCommand *comm,
const char *mime_type,
gboolean check_command)
diff --git a/src/fr-command-lrzip.c b/src/fr-command-lrzip.c
index a54e2dc..7cbc9c7 100644
--- a/src/fr-command-lrzip.c
+++ b/src/fr-command-lrzip.c
@@ -167,14 +167,14 @@ fr_command_lrzip_test (FrCommand *comm)
const char *lrzip_mime_type[] = { "application/x-lrzip", NULL };
-const char **
+static const char **
fr_command_lrzip_get_mime_types (FrCommand *comm)
{
return lrzip_mime_type;
}
-FrCommandCap
+static FrCommandCap
fr_command_lrzip_get_capabilities (FrCommand *comm,
const char *mime_type,
gboolean check_command)
diff --git a/src/fr-command-rar.c b/src/fr-command-rar.c
index 53ac186..f47448a 100644
--- a/src/fr-command-rar.c
+++ b/src/fr-command-rar.c
@@ -600,14 +600,14 @@ const char *rar_mime_type[] = { "application/x-cbr",
NULL };
-const char **
+static const char **
fr_command_rar_get_mime_types (FrCommand *comm)
{
return rar_mime_type;
}
-FrCommandCap
+static FrCommandCap
fr_command_rar_get_capabilities (FrCommand *comm,
const char *mime_type,
gboolean check_command)
diff --git a/src/fr-command-rpm.c b/src/fr-command-rpm.c
index ebf0cdb..9a8d395 100644
--- a/src/fr-command-rpm.c
+++ b/src/fr-command-rpm.c
@@ -225,14 +225,14 @@ fr_command_rpm_extract (FrCommand *comm,
const char *rpm_mime_type[] = { "application/x-rpm", NULL };
-const char **
+static const char **
fr_command_rpm_get_mime_types (FrCommand *comm)
{
return rpm_mime_type;
}
-FrCommandCap
+static FrCommandCap
fr_command_rpm_get_capabilities (FrCommand *comm,
const char *mime_type,
gboolean check_command)
diff --git a/src/fr-command-tar.c b/src/fr-command-tar.c
index 5928014..27e2b17 100644
--- a/src/fr-command-tar.c
+++ b/src/fr-command-tar.c
@@ -988,14 +988,14 @@ const char *tar_mime_types[] = { "application/x-compressed-tar",
NULL };
-const char **
+static const char **
fr_command_tar_get_mime_types (FrCommand *comm)
{
return tar_mime_types;
}
-FrCommandCap
+static FrCommandCap
fr_command_tar_get_capabilities (FrCommand *comm,
const char *mime_type,
gboolean check_command)
diff --git a/src/fr-command-unstuff.c b/src/fr-command-unstuff.c
index e7cb4be..7a461c4 100644
--- a/src/fr-command-unstuff.c
+++ b/src/fr-command-unstuff.c
@@ -277,14 +277,14 @@ fr_command_unstuff_handle_error (FrCommand *comm,
const char *unstuff_mime_type[] = { "application/x-stuffit", NULL };
-const char **
+static const char **
fr_command_unstuff_get_mime_types (FrCommand *comm)
{
return unstuff_mime_type;
}
-FrCommandCap
+static FrCommandCap
fr_command_unstuff_get_capabilities (FrCommand *comm,
const char *mime_type,
gboolean check_command)
diff --git a/src/fr-command-zip.c b/src/fr-command-zip.c
index 788d984..a929f2d 100644
--- a/src/fr-command-zip.c
+++ b/src/fr-command-zip.c
@@ -386,14 +386,14 @@ const char *zip_mime_type[] = { "application/x-cbz",
NULL };
-const char **
+static const char **
fr_command_zip_get_mime_types (FrCommand *comm)
{
return zip_mime_type;
}
-FrCommandCap
+static FrCommandCap
fr_command_zip_get_capabilities (FrCommand *comm,
const char *mime_type,
gboolean check_command)
diff --git a/src/fr-command-zoo.c b/src/fr-command-zoo.c
index a0086a1..99a4baf 100644
--- a/src/fr-command-zoo.c
+++ b/src/fr-command-zoo.c
@@ -322,14 +322,14 @@ fr_command_zoo_test (FrCommand *comm)
const char *zoo_mime_type[] = { "application/x-zoo", NULL };
-const char **
+static const char **
fr_command_zoo_get_mime_types (FrCommand *comm)
{
return zoo_mime_type;
}
-FrCommandCap
+static FrCommandCap
fr_command_zoo_get_capabilities (FrCommand *comm,
const char *mime_type,
gboolean check_command)
diff --git a/src/fr-command.c b/src/fr-command.c
index 325297c..41e15e0 100644
--- a/src/fr-command.c
+++ b/src/fr-command.c
@@ -171,14 +171,14 @@ base_fr_command_handle_error (FrCommand *comm,
const char **void_mime_types = { NULL };
-const char **
+static const char **
base_fr_command_get_mime_types (FrCommand *comm)
{
return void_mime_types;
}
-FrCommandCap
+static FrCommandCap
base_fr_command_get_capabilities (FrCommand *comm,
const char *mime_type,
gboolean check_command)
diff --git a/src/fr-init.c b/src/fr-init.c
index f039731..7286a37 100644
--- a/src/fr-init.c
+++ b/src/fr-init.c
@@ -200,7 +200,7 @@ migrate_options_directory (void)
/* -- FrRegisteredCommand -- */
-FrRegisteredCommand *
+static FrRegisteredCommand *
fr_registered_command_new (GType command_type)
{
FrRegisteredCommand *reg_com;
@@ -241,14 +241,14 @@ fr_registered_command_new (GType command_type)
}
-void
+G_GNUC_UNUSED static void
fr_registered_command_ref (FrRegisteredCommand *reg_com)
{
reg_com->ref++;
}
-void
+static void
fr_registered_command_unref (FrRegisteredCommand *reg_com)
{
if (--(reg_com->ref) != 0)
@@ -260,7 +260,7 @@ fr_registered_command_unref (FrRegisteredCommand *reg_com)
}
-FrCommandCaps
+static FrCommandCaps
fr_registered_command_get_capabilities (FrRegisteredCommand *reg_com,
const char *mime_type)
{
@@ -278,7 +278,7 @@ fr_registered_command_get_capabilities (FrRegisteredCommand *reg_com,
}
-FrCommandCaps
+static FrCommandCaps
fr_registered_command_get_potential_capabilities (FrRegisteredCommand *reg_com,
const char *mime_type)
{
@@ -299,7 +299,7 @@ fr_registered_command_get_potential_capabilities (FrRegisteredCommand *reg_com,
}
-void
+static void
register_command (GType command_type)
{
if (Registered_Commands == NULL)
@@ -308,7 +308,7 @@ register_command (GType command_type)
}
-gboolean
+G_GNUC_UNUSED static gboolean
unregister_command (GType command_type)
{
int i;
diff --git a/src/fr-window.c b/src/fr-window.c
index 516ef76..87df489 100644
--- a/src/fr-window.c
+++ b/src/fr-window.c
@@ -1736,7 +1736,7 @@ fr_window_update_current_location (FrWindow *window)
}
-void
+static void
fr_window_update_dir_tree (FrWindow *window)
{
GPtrArray *dirs;
diff --git a/src/rar-utils.c b/src/rar-utils.c
index e6ccc3e..c1a35e0 100644
--- a/src/rar-utils.c
+++ b/src/rar-utils.c
@@ -26,6 +26,7 @@
#include "fr-command.h"
#include "gio-utils.h"
#include "glib-utils.h"
+#include "rar-utils.h"
typedef enum {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]