From bc205af25cc4e47ae2ae36454c530fbd7dfb523e Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sun, 8 Jan 2012 15:05:55 +0100 Subject: [PATCH] Fix const char compiler warning --- bacula/src/lib/sellist.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bacula/src/lib/sellist.h b/bacula/src/lib/sellist.h index 8b98bd23f0..b87e39c23c 100644 --- a/bacula/src/lib/sellist.h +++ b/bacula/src/lib/sellist.h @@ -41,7 +41,7 @@ class sellist : public SMARTALLOC { - char *errmsg; + const char *errmsg; char *p, *e, *h; char esave, hsave; int64_t beg, end; @@ -59,7 +59,7 @@ public: int size() const { return num_items; }; char *get_list() { return str; }; /* if errmsg == NULL, no error */ - char *get_errmsg() { return errmsg; }; + const char *get_errmsg() { return errmsg; }; }; /* @@ -70,7 +70,8 @@ inline sellist::sellist() num_items = 0; max = 99999; str = NULL; - e = errmsg = NULL; + e = NULL; + errmsg = NULL; } /* @@ -105,4 +106,3 @@ inline void sellist::begin() beg = 1; errmsg = NULL; } - -- 2.39.5