projects
/
tools
/
pristine-tar.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc46588
)
forgot to add main
author
Joey Hess
<joey@kitenet.net>
Wed, 4 Jan 2012 21:39:49 +0000
(17:39 -0400)
committer
Joey Hess
<joey@kitenet.net>
Wed, 4 Jan 2012 21:39:49 +0000
(17:39 -0400)
zgz/pit/suse-bzip2/main.c
[new file with mode: 0644]
patch
|
blob
diff --git a/zgz/pit/suse-bzip2/main.c
b/zgz/pit/suse-bzip2/main.c
new file mode 100644
(file)
index 0000000..
3e25000
--- /dev/null
+++ b/
zgz/pit/suse-bzip2/main.c
@@ -0,0
+1,19
@@
+#include <stdio.h>
+#include <stdlib.h>
+
+extern void suse_bzip2(int level);
+
+int main(int argc, char **argv) {
+ int level;
+ if (argc != 2) {
+ fprintf(stderr, "specify compression level parameter\n");
+ exit(1);
+ }
+ level = atoi(argv[1]);
+ if (level < 1 || level > 9) {
+ fprintf(stderr, "1-9 only\n");
+ exit(1);
+ }
+ suse_bzip2(level);
+ exit(0);
+}