summaryrefslogtreecommitdiff
path: root/usr.bin/compress/compress.h
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/compress/compress.h')
-rw-r--r--usr.bin/compress/compress.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/usr.bin/compress/compress.h b/usr.bin/compress/compress.h
index 3a7b635b715..c086a6fe134 100644
--- a/usr.bin/compress/compress.h
+++ b/usr.bin/compress/compress.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: compress.h,v 1.9 2008/07/05 21:00:38 sobrado Exp $ */
+/* $OpenBSD: compress.h,v 1.10 2008/07/27 13:15:31 sobrado Exp $ */
/*
* Copyright (c) 1997 Michael Shalayeff
@@ -43,12 +43,11 @@ struct z_info {
*/
#define Z_BUFSIZE 16384
-/*
- * program modes
- */
-#define MODE_COMP 0
-#define MODE_DECOMP 1
-#define MODE_CAT 2
+enum program_mode {
+ MODE_COMP,
+ MODE_DECOMP,
+ MODE_CAT
+} pmode;
/*
* exit codes for compress