]> git.scottworley.com Git - overonion/blobdiff - reverse.c
Switch to stdio for output. It's simpler
[overonion] / reverse.c
index 2d83751338ded6b7f08c20433f74c9b05945b22d..9bbf7b93076e4a61870f3f01c2e2010ed8ada58e 100644 (file)
--- a/reverse.c
+++ b/reverse.c
@@ -1,6 +1,7 @@
 #include "reverse_lib.h"
 
 #include <err.h>
+#include <stdio.h>
 #include <sysexits.h>
 
 int main(int argc, char** argv) {
@@ -8,7 +9,7 @@ int main(int argc, char** argv) {
     errx(EX_USAGE, "Usage: reverse filename");
   }
 
-  reverse_file(argv[1]);
+  reverse_file(argv[1], stdout);
 
   return 0;
 }