about summary refs log tree commit diff
path: root/converter/other/pamtoavs.c
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2010-02-09 03:41:07 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2010-02-09 03:41:07 +0000
commit95a66834f2c7775836e8d66f3b1da176438cf94b (patch)
tree02abe31415f8851c923cbf96129d51a1268a6e15 /converter/other/pamtoavs.c
parent524a88e2da289050397373b2f013b84593f99750 (diff)
downloadnetpbm-mirror-95a66834f2c7775836e8d66f3b1da176438cf94b.tar.gz
netpbm-mirror-95a66834f2c7775836e8d66f3b1da176438cf94b.tar.xz
netpbm-mirror-95a66834f2c7775836e8d66f3b1da176438cf94b.zip
Remove output file argument
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@1120 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter/other/pamtoavs.c')
-rw-r--r--converter/other/pamtoavs.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/converter/other/pamtoavs.c b/converter/other/pamtoavs.c
index 740042e6..4764c9e8 100644
--- a/converter/other/pamtoavs.c
+++ b/converter/other/pamtoavs.c
@@ -131,20 +131,18 @@ int
 main(int argc, const char *argv[]) {
     struct pam   inPam;
     const char * inputFilename;
-    const char * outputFilename;
     FILE       * inFileP;
-    FILE       * outFileP;
 
     pm_proginit(&argc, argv);
+
     inputFilename = (argc > 1) ? argv[1] : "-";
-    outputFilename = (argc > 2) ? argv[2] : "-";
+
     inFileP = pm_openr(inputFilename);
+
     pnm_readpaminit(inFileP, &inPam, PAM_STRUCT_SIZE(tuple_type));
-    outFileP = pm_openw(outputFilename);
 
-    produceAvs(&inPam, outFileP);
+    produceAvs(&inPam, stdout);
 
-    pm_closew(outFileP);
     pm_closer(inFileP);
 
     return 0;