:: commit 2bd7c48f01e2f63670647c139a36223264987b79

Kamila Szewczyk <27734421+kspalaiologos@users.noreply.github.com> — 2022-09-11 13:42

parents: 054fe8a31e

newlines after error messages

diff --git a/src/main.c b/src/main.c
index c35a912..7f801f9 100644
--- a/src/main.c
+++ b/src/main.c
@@ -70,8 +70,7 @@ static void help() {
             "  -j N, --jobs=N    set the amount of parallel threads\n"
 #endif
             "\n"
-            "Report bugs to: https://github.com/kspalaiologos/bzip3\n"
-            "\n");
+            "Report bugs to: https://github.com/kspalaiologos/bzip3\n");
 }
 
 static int process(FILE * input_des, FILE * output_des, int mode, int block_size, int workers) {
@@ -458,7 +457,7 @@ int main(int argc, char * argv[]) {
                 break;
             case 'b':
                 if (!is_numeric(optarg)) {
-                    fprintf(stderr, "bzip3: invalid block size: %s", optarg);
+                    fprintf(stderr, "bzip3: invalid block size: %s\n", optarg);
                     return 1;
                 }
                 block_size = MiB(atoi(optarg));
@@ -466,7 +465,7 @@ int main(int argc, char * argv[]) {
 #ifdef PTHREAD
             case 'j':
                 if (!is_numeric(optarg)) {
-                    fprintf(stderr, "bzip3: invalid amount of jobs: %s", optarg);
+                    fprintf(stderr, "bzip3: invalid amount of jobs: %s\n", optarg);
                     return 1;
                 }
                 workers = atoi(optarg);
tab: 248 wrap: offon