[gimp] plug-ins: pedantic function reordering in file-header.c



commit 195d5c760baf8e703722baa737bede8716044248
Author: Michael Natterer <mitch gimp org>
Date:   Sat Oct 17 23:28:45 2015 +0200

    plug-ins: pedantic function reordering in file-header.c

 plug-ins/common/file-header.c |   43 +++++++++++++++++++++--------------------
 1 files changed, 22 insertions(+), 21 deletions(-)
---
diff --git a/plug-ins/common/file-header.c b/plug-ins/common/file-header.c
index 3d633f5..237c527 100644
--- a/plug-ins/common/file-header.c
+++ b/plug-ins/common/file-header.c
@@ -39,15 +39,16 @@ static void       run           (const gchar      *name,
                                  gint             *nreturn_vals,
                                  GimpParam       **return_vals);
 
-static gboolean   print         (GOutputStream    *output,
-                                 GError          **error,
-                                 const gchar      *format,
-                                 ...) G_GNUC_PRINTF (3, 0);
 static gboolean   save_image    (GFile            *file,
                                  gint32            image_ID,
                                  gint32            drawable_ID,
                                  GError          **error);
 
+static gboolean   print         (GOutputStream    *output,
+                                 GError          **error,
+                                 const gchar      *format,
+                                 ...) G_GNUC_PRINTF (3, 4);
+
 
 const GimpPlugInInfo PLUG_IN_INFO =
 {
@@ -167,23 +168,6 @@ run (const gchar      *name,
 }
 
 static gboolean
-print (GOutputStream  *output,
-       GError        **error,
-       const gchar    *format,
-       ...)
-{
-  va_list  args;
-  gboolean success;
-
-  va_start (args, format);
-  success = g_output_stream_vprintf (output, NULL, NULL,
-                                     error, format, args);
-  va_end (args);
-
-  return success;
-}
-
-static gboolean
 save_image (GFile   *file,
             gint32   image_ID,
             gint32   drawable_ID,
@@ -430,3 +414,20 @@ save_image (GFile   *file,
 
   return FALSE;
 }
+
+static gboolean
+print (GOutputStream  *output,
+       GError        **error,
+       const gchar    *format,
+       ...)
+{
+  va_list  args;
+  gboolean success;
+
+  va_start (args, format);
+  success = g_output_stream_vprintf (output, NULL, NULL,
+                                     error, format, args);
+  va_end (args);
+
+  return success;
+}


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]