rotozoom: Return an error value instead of calling exit().
authorDiego Biurrun <diego@biurrun.de>
Mon, 9 May 2011 09:16:55 +0000 (11:16 +0200)
committerDiego Biurrun <diego@biurrun.de>
Wed, 11 May 2011 09:54:57 +0000 (11:54 +0200)
tests/rotozoom.c

index aebcc8e..644ae8b 100644 (file)
@@ -279,7 +279,7 @@ int main(int argc, char **argv)
     if (argc != 3) {
         printf("usage: %s directory/ image.pnm\n"
                "generate a test video stream\n", argv[0]);
-        exit(1);
+        return 1;
     }
 
     w = DEFAULT_WIDTH;