Browse Source

faux.conv: Fix faux_conv_bool2str()

Serj Kalichev 3 years ago
parent
commit
420288bfb4
2 changed files with 2 additions and 2 deletions
  1. 1 1
      faux/conv.h
  2. 1 1
      faux/conv/conv.c

+ 1 - 1
faux/conv.h

@@ -25,7 +25,7 @@ bool_t faux_conv_atoc(const char *str, char *val, int base);
 bool_t faux_conv_atouc(const char *str, unsigned char *val, int base);
 
 bool_t faux_conv_str2bool(const char *str, bool_t *val);
-const char *faux_conv_bool2str(bool_t *val);
+const char *faux_conv_bool2str(bool_t val);
 
 C_DECL_END
 

+ 1 - 1
faux/conv/conv.c

@@ -316,7 +316,7 @@ bool_t faux_conv_str2bool(const char *str, bool_t *val)
  * @param [in] val Boolean value.
  * @return "true" or "false" strings
  */
-const char *faux_conv_bool2str(bool_t *val)
+const char *faux_conv_bool2str(bool_t val)
 {
 	if (val)
 		return "true";