diff options
-rw-r--r-- | keygen.c | 30 |
1 files changed, 15 insertions, 15 deletions
@@ -4,26 +4,26 @@ int main(int argc, char* argv[]) { - int opt; + int opt; int nbytes = 256; - char* output; + char* output; int defout = 0; int defbyte = 0; - while ((opt = getopt(argc, argv, "b:o:")) != -1) { - switch (opt) { - case 'b': - nbytes = atoi(optarg); + while ((opt = getopt(argc, argv, "b:o:")) != -1) { + switch (opt) { + case 'b': + nbytes = atoi(optarg); defbyte = 1; - break; - case 'o': - output = argv[(optind-1)]; + break; + case 'o': + output = argv[(optind-1)]; defout = 1; - break; - default: - fprintf(stderr, "Usage: %s [-b nbytes] [-o output] \n", argv[0]); - exit(EXIT_FAILURE); - } - } + break; + default: + fprintf(stderr, "Usage: %s [-b nbytes] [-o output] \n", argv[0]); + exit(EXIT_FAILURE); + } + } if (nbytes < 0) { printf("Negative byte value inserted! \n"); |