From: Kern Sibbald Date: Sun, 8 Jan 2012 14:05:55 +0000 (+0100) Subject: Fix const char compiler warning X-Git-Tag: Release-7.0.0~353 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=cbe7e0c2092ce0de041a3f455aadd2862bf6e2fc;p=bacula%2Fbacula Fix const char compiler warning --- 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; } -