Skip to content

Commit

Permalink
gattrib: Make the argument of verbose_print() to be 'const char*'.
Browse files Browse the repository at this point in the history
This eliminates several cast warnings reporting by g++.
  • Loading branch information
vzh committed Mar 14, 2017
1 parent f3d90a3 commit 2d8cc86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gattrib/include/prototype.h
Expand Up @@ -140,7 +140,7 @@ void s_object_delete_text_object_in_object(TOPLEVEL *toplevel, OBJECT *test_obje
int s_object_has_sym_file(OBJECT *object);

/* ------------- s_misc.c ------------- */
void verbose_print(char *string);
void verbose_print (const char *string);
void verbose_done(void);
void verbose_reset_index(void);
char *s_misc_remaining_string(char *string, char delimiter, int count);
Expand Down
2 changes: 1 addition & 1 deletion gattrib/src/s_misc.c
Expand Up @@ -55,7 +55,7 @@ static int char_index = 0;
* Identical to that defined in gnetlist/src/s_misc.c
* \param string String to be printed
*/
void verbose_print(char *string)
void verbose_print (const char *string)
{
if (verbose_mode) {
printf("%s", string);
Expand Down

0 comments on commit 2d8cc86

Please sign in to comment.