From 2d8cc869cec8d96b37a45a84b5e849f278bdc98e Mon Sep 17 00:00:00 2001 From: Vladimir Zhbanov Date: Tue, 14 Mar 2017 13:14:49 +0300 Subject: [PATCH] gattrib: Make the argument of verbose_print() to be 'const char*'. This eliminates several cast warnings reporting by g++. --- gattrib/include/prototype.h | 2 +- gattrib/src/s_misc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gattrib/include/prototype.h b/gattrib/include/prototype.h index 3be67246b0..de693defe8 100644 --- a/gattrib/include/prototype.h +++ b/gattrib/include/prototype.h @@ -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); diff --git a/gattrib/src/s_misc.c b/gattrib/src/s_misc.c index 01271ee1b7..63ec7f69fb 100644 --- a/gattrib/src/s_misc.c +++ b/gattrib/src/s_misc.c @@ -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);