]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/lib/bregex.c
19July06
[bacula/bacula] / bacula / src / lib / bregex.c
index cf800e012faf6f90c4eb86c5809bf66cdce246c1..cc981403043b71ba077c78951013008da60914ab 100644 (file)
@@ -35,7 +35,7 @@
 #include "bacula.h"
 #include "bregex.h"
 
-#define set_error(x) bufp->errmsg=(x)
+#define set_error(x) bufp->errmsg=((char *)(x))
 #define got_error bufp->errmsg!=NULL
 
 /* The original code blithely assumed that sizeof(short) == 2.  Not
@@ -1037,7 +1037,7 @@ else \
    } \
 }
 
-char *re_compile_pattern(regex_t * bufp, unsigned char *regex)
+const char *re_compile_pattern(regex_t * bufp, unsigned char *regex)
 {
    int a;
    int pos;