aboutsummaryrefslogtreecommitdiff
path: root/crypt.c
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2020-01-16 18:43:51 +1300
committerTom Ryder <tom@sanctum.geek.nz>2020-01-16 18:43:51 +1300
commite96fb7137fb2fea83a9d3eee31d37fc3dd00af82 (patch)
treeedcaae8caa652f8e0f1dee6322831c27cadca947 /crypt.c
parentRefactor Makefile (diff)
downloadcrypt-e96fb7137fb2fea83a9d3eee31d37fc3dd00af82.tar.gz
crypt-e96fb7137fb2fea83a9d3eee31d37fc3dd00af82.zip
Use consistent layout for function braces
Diffstat (limited to 'crypt.c')
-rw-r--r--crypt.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/crypt.c b/crypt.c
index 5e13fbd..4f085b1 100644
--- a/crypt.c
+++ b/crypt.c
@@ -42,7 +42,8 @@ int main (int argc, char **argv)
/*
* Show usage to given stream, and exit with given code
*/
-void usage(FILE *stream, int status) {
+void usage(FILE *stream, int status)
+{
fputs("USAGE: crypt [-h | KEY SALT]\n", stream);
exit(status);
}
@@ -50,7 +51,8 @@ void usage(FILE *stream, int status) {
/*
* Exit with error error message
*/
-void error(char *message) {
+void error(char *message)
+{
fprintf(stderr, "%s\n", message);
exit(EXIT_FAILURE);
}