summaryrefslogtreecommitdiff
path: root/src/tools/oping/oping.c
diff options
context:
space:
mode:
authorSander Vrijders <sander.vrijders@ugent.be>2018-06-08 16:03:41 +0200
committerDimitri Staessens <dimitri.staessens@ugent.be>2018-06-08 16:45:47 +0200
commit4afcef3d89a56a9fe5b340af215a587f5aedac18 (patch)
treedced6a95bc106085006468839f7cf99ac1b7223b /src/tools/oping/oping.c
parent5c049ef4fb90faa341e18f2d752c719fb49ff648 (diff)
downloadouroboros-4afcef3d89a56a9fe5b340af215a587f5aedac18.tar.gz
ouroboros-4afcef3d89a56a9fe5b340af215a587f5aedac18.zip
tools: Add newlines to printf statements in oping
There were some missing newlines in printf statements in oping. This adds them. Signed-off-by: Sander Vrijders <sander.vrijders@ugent.be> Signed-off-by: Dimitri Staessens <dimitri.staessens@ugent.be>
Diffstat (limited to 'src/tools/oping/oping.c')
-rw-r--r--src/tools/oping/oping.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/oping/oping.c b/src/tools/oping/oping.c
index 8396e261..e36b3bd5 100644
--- a/src/tools/oping/oping.c
+++ b/src/tools/oping/oping.c
@@ -145,10 +145,10 @@ static int time_mul(const char * rem)
else if (strcmp(rem, "d") == 0)
return 60 * 60 * 24 * 1000;
- printf("Unknown time unit: %s.", rem);
+ printf("Unknown time unit: %s.\n", rem);
usage();
- exit(EXIT_SUCCESS);
+ exit(EXIT_FAILURE);
}
int main(int argc,