Skip to content

Commit

Permalink
Cosmetic fixes to string_calls
Browse files Browse the repository at this point in the history
  • Loading branch information
matt335672 committed May 5, 2022
1 parent 79a1106 commit f9457fe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions common/string_calls.c
Original file line number Diff line number Diff line change
Expand Up @@ -921,6 +921,7 @@ g_strnjoin(char *dest, int dest_len, const char *joiner, const char *src[], int
return dest;
}

/*****************************************************************************/
int
g_bitmask_to_str(int bitmask, const struct bitmask_string bitdefs[],
char delim, char *buff, int bufflen)
Expand Down Expand Up @@ -987,6 +988,7 @@ g_bitmask_to_str(int bitmask, const struct bitmask_string bitdefs[],
return rlen;
}

/*****************************************************************************/
int
g_str_to_bitmask(const char *str, const struct bitmask_string bitdefs[],
const char *delim, char *unrecognised, int unrecognised_len)
Expand Down
4 changes: 2 additions & 2 deletions common/string_calls.h
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ g_get_display_num_from_display(const char *display_text);
* a hexadecimal constant.
*/
int
g_bitmask_to_str(int bitmask, const struct bitmask_string[],
g_bitmask_to_str(int bitmask, const struct bitmask_string bitdefs[],
char delim, char *buff, int bufflen);

/***
Expand All @@ -184,7 +184,7 @@ g_bitmask_to_str(int bitmask, const struct bitmask_string[],
* @return bitmask value for recognised tokens
*/
int
g_str_to_bitmask(const char *str, const struct bitmask_string[],
g_str_to_bitmask(const char *str, const struct bitmask_string bitdefs[],
const char *delim, char *unrecognised,
int unrecognised_len);

Expand Down

0 comments on commit f9457fe

Please sign in to comment.