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