aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-12-16 17:34:47 +1300
committerTom Ryder <tom@sanctum.geek.nz>2016-12-16 17:34:47 +1300
commit8c541e4b5feadcac7f02bdff9e5635975440ac74 (patch)
treebf5ebb9ab0d2ce0e4e29042fd83eb8265828d265
parentRemove include guards (diff)
downloadcrypt-8c541e4b5feadcac7f02bdff9e5635975440ac74.tar.gz
crypt-8c541e4b5feadcac7f02bdff9e5635975440ac74.zip
Move constants into header file
-rw-r--r--crypt.c3
-rw-r--r--crypt.h2
2 files changed, 2 insertions, 3 deletions
diff --git a/crypt.c b/crypt.c
index 8b810c2..e00df6a 100644
--- a/crypt.c
+++ b/crypt.c
@@ -1,8 +1,5 @@
#include "crypt.h"
-#define OPTSTRING "h"
-#define USAGE "USAGE: crypt KEY SALT"
-
/**
* crypt(1) - Simple shell script frontend to crypt(3), because I'm tired of
* fighting with mkpasswd(1).
diff --git a/crypt.h b/crypt.h
index b3514b5..2b8145d 100644
--- a/crypt.h
+++ b/crypt.h
@@ -4,3 +4,5 @@
#include <stdlib.h>
#include <unistd.h>
+#define OPTSTRING "h"
+#define USAGE "USAGE: crypt KEY SALT"