about summary refs log tree commit diff stats
path: root/cli.c
diff options
context:
space:
mode:
authorDaniel Santos <dacs.git@brilhante.top>2022-03-19 07:35:32 +0000
committerDaniel Santos <dacs.git@brilhante.top>2022-03-19 07:35:32 +0000
commitfcc6c957bfb391b675b3f251a28ec988e31ff50c (patch)
tree9c87db58b95899749642809ed026989ef4ad2682 /cli.c
parentaa172de2cf295c84311f32dfc1b61f0f1d173d20 (diff)
downloadnumericx-c-fcc6c957bfb391b675b3f251a28ec988e31ff50c.tar.gz
numericx_translate() return true
 * numericx_translate() was returning EXIT_SUCCESS in case of success.
   Doohh! Now it is return true, in case of success.

   Ajust doxygen comment accordingly.

Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
Diffstat (limited to 'cli.c')
-rw-r--r--cli.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli.c b/cli.c
index 816da7d..be77bcc 100644
--- a/cli.c
+++ b/cli.c
@@ -143,7 +143,7 @@ main(int argc, char* argv[])
 	switch( status )
 	{
 		case EINVAL:
-			fprintf(stderr, "error: %s: %s. Resulting string variable has to be NULL.\n",
+			fprintf(stderr, "error: %s: %s. Resulting string argument value has to be NULL.\n",
 					PROG_NAME, strerror(EINVAL));
 			break;
 		case EDOM:
@@ -154,7 +154,7 @@ main(int argc, char* argv[])
 				fprintf(stderr, "error: %s: Unrepresentable void number.\n", PROG_NAME);
 			break;
 	}
-	if( !(status == EXIT_SUCCESS) )
+	if( !(status == true) )
 	{
 		fprintf(stderr, "error: %s: Incapable of translating.\n", PROG_NAME);
 		free(from);