aboutsummaryrefslogtreecommitdiffstats
path: root/src/jpeg.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/jpeg.c')
-rw-r--r--src/jpeg.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/jpeg.c b/src/jpeg.c
index 5745541..11e9898 100644
--- a/src/jpeg.c
+++ b/src/jpeg.c
@@ -14,12 +14,6 @@ struct error_mgr{
jmp_buf jmp_buffer;
};
-static void error_exit(j_common_ptr cinfo){
- (void) cinfo;
- printf("\nerror!\n");
- exit(1);
-}
-
struct jpeg_t{
struct image img;
FILE *f;
@@ -27,6 +21,12 @@ struct jpeg_t{
struct error_mgr jerr;
};
+static void error_exit(j_common_ptr cinfo){
+ (void) cinfo;
+ printf("\nerror!\n");
+ exit(1);
+}
+
static struct image *jpeg_open(FILE *f){
struct jpeg_t *j;