summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSøren Sandmann Pedersen <ssp@redhat.com>2011-08-02 16:48:02 -0400
committerSøren Sandmann Pedersen <ssp@redhat.com>2011-08-02 16:48:02 -0400
commit972226e0efbe912707c90e8042fa5217e81cc535 (patch)
treea6bb69a4171353b3654da786e7b7044d87c30987
parent88898b8860060e548a84ace736f2032af6a46d25 (diff)
Drop second argument to trans
-rw-r--r--pngtrans.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/pngtrans.c b/pngtrans.c
index fea0160..c1adf25 100644
--- a/pngtrans.c
+++ b/pngtrans.c
@@ -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)))
{