aboutsummaryrefslogtreecommitdiff
path: root/fiv-jpegcrop.c
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2022-06-05 13:29:38 +0200
committerPřemysl Eric Janouch <p@janouch.name>2022-06-05 13:30:53 +0200
commit4ca8825e02ff8959e3790df2d7818ecfb4134963 (patch)
treeae412b0d399ccf2bed1a771560c7b7a43e49fa52 /fiv-jpegcrop.c
parent024b5117b4fdbd3193afab40c071abd11b85a013 (diff)
downloadfiv-4ca8825e02ff8959e3790df2d7818ecfb4134963.tar.gz
fiv-4ca8825e02ff8959e3790df2d7818ecfb4134963.tar.xz
fiv-4ca8825e02ff8959e3790df2d7818ecfb4134963.zip
Clean up
Use gchar when memory is allocated through GLib.
Diffstat (limited to 'fiv-jpegcrop.c')
-rw-r--r--fiv-jpegcrop.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fiv-jpegcrop.c b/fiv-jpegcrop.c
index 4bbcd97..50828c7 100644
--- a/fiv-jpegcrop.c
+++ b/fiv-jpegcrop.c
@@ -22,10 +22,10 @@
// --- Utilities ---------------------------------------------------------------
-static void exit_fatal(const gchar *format, ...) G_GNUC_PRINTF(1, 2);
+static void exit_fatal(const char *format, ...) G_GNUC_PRINTF(1, 2);
static void
-exit_fatal(const gchar *format, ...)
+exit_fatal(const char *format, ...)
{
va_list ap;
va_start(ap, format);
@@ -250,7 +250,7 @@ on_motion(G_GNUC_UNUSED GtkWidget *self, GdkEventMotion *event,
}
static gboolean
-open_jpeg(const gchar *data, gsize len, GError **error)
+open_jpeg(const char *data, gsize len, GError **error)
{
tjhandle h = tjInitDecompress();
if (!h) {