summary refs log tree commit diff
path: root/bin/scheme.c
diff options
context:
space:
mode:
Diffstat (limited to 'bin/scheme.c')
-rw-r--r--bin/scheme.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/bin/scheme.c b/bin/scheme.c
index 33fd8b60..82539ba2 100644
--- a/bin/scheme.c
+++ b/bin/scheme.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2018, 2019  C. McEnroe <june@causal.agency>
+/* Copyright (C) 2018, 2019  June McEnroe <june@causal.agency>
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU Affero General Public License as published by
@@ -19,7 +19,6 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <sysexits.h>
 #include <unistd.h>
 
 #include "png.h"
@@ -263,14 +262,14 @@ int main(int argc, char *argv[]) {
 			break; case 'm': output = outputMintty;
 			break; case 'p': {
 				uint p = strtoul(optarg, NULL, 0);
-				if (p >= SchemeLen) return EX_USAGE;
+				if (p >= SchemeLen) return 1;
 				hsv = &scheme[p];
 				len = 1;
 			}
 			break; case 's': output = outputCSS;
 			break; case 't': len = SchemeLen;
 			break; case 'x': output = outputRGB;
-			break; default:  return EX_USAGE;
+			break; default:  return 1;
 		}
 	}