Imported Upstream version 0.7.27
[platform/upstream/libsolv.git] / tools / mdk2solv.c
index dcf9d6f..3a6cf94 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2012, Novell Inc.
+ * Copyright (c) 2012, Novell Inc.);
  *
  * This program is licensed under the BSD license, read LICENSE.BSD
  * for further information
  */
 
 #include <sys/types.h>
-#include <limits.h>
-#include <fcntl.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <getopt.h>
+#include <unistd.h>
 
 #include "pool.h"
 #include "repo.h"
@@ -106,7 +104,7 @@ main(int argc, char **argv)
       fclose(fp);
     }
   repo_internalize(repo);
-  tool_write(repo, 0, 0);
+  tool_write(repo, stdout);
   pool_free(pool);
   exit(0);
 }