diff options
author | Søren Sandmann Pedersen <ssp@redhat.com> | 2011-08-02 16:48:02 -0400 |
---|---|---|
committer | Søren Sandmann Pedersen <ssp@redhat.com> | 2011-08-02 16:48:02 -0400 |
commit | 972226e0efbe912707c90e8042fa5217e81cc535 (patch) | |
tree | a6bb69a4171353b3654da786e7b7044d87c30987 | |
parent | 88898b8860060e548a84ace736f2032af6a46d25 (diff) |
Drop second argument to trans
-rw-r--r-- | pngtrans.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -58,20 +58,19 @@ low_pass (complex_image_t *image, double d) int main (int argc, char **argv) { - char *input, *output; + char *input; GdkPixbuf *pb; complex_image_t *image; g_type_init (); - if (argc < 3) + if (argc < 2) { - printf ("Usage: %s <input name> <output name>\n\n", argv[0]); + printf ("Usage: %s <input name>\n\n", argv[0]); return 1; } input = argv[1]; - output = argv[2]; if (!(pb = gdk_pixbuf_new_from_file (input, NULL))) { |