summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-10-06 19:53:56 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-10-06 19:53:56 -0700
commitbe9658d3380bbdee73a687d74a18ae22c8272ac5 (patch)
tree8cc4cd9d0a849cca0d396d33045e6c5b8eb92dc9
parenta413f34351b6e72100bdbef7ae32d1266dfa8942 (diff)
rgb.c: fix -Wdiscarded-qualifiers warning
rgb.c: In function ‘main’: rgb.c:81:9: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] dbname = RGB_DB; ^ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--rgb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rgb.c b/rgb.c
index 0ed62f6..bf4d032 100644
--- a/rgb.c
+++ b/rgb.c
@@ -57,7 +57,7 @@ static char *ProgramName;
int
main(int argc, char **argv)
{
- char *dbname;
+ const char *dbname;
char line[512];
int red, green, blue;
RGB rgb;