X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fsrc%2Flib%2Fvar.h;h=e79c84b70522068655cb127fbcf55b73bc487990;hb=95c6245affef4000580427d5e0855227dedcd9dc;hp=5bba30f3a883d1e4e6d8d2f83834f4087801dfce;hpb=c62398d50d0f5afb873192adfef6a330bb260e3e;p=bacula%2Fbacula diff --git a/bacula/src/lib/var.h b/bacula/src/lib/var.h index 5bba30f3a8..e79c84b705 100644 --- a/bacula/src/lib/var.h +++ b/bacula/src/lib/var.h @@ -18,22 +18,17 @@ * Modified for use with Bacula by Kern Sibbald, June 2003 */ /* - Copyright (C) 2000-2003 Kern Sibbald and John Walker + Copyright (C) 2003-2006 Kern Sibbald This program is free software; you can redistribute it and/or - modify it under the terms of the GNU General Public License as - published by the Free Software Foundation; either version 2 of - the License, or (at your option) any later version. + modify it under the terms of the GNU General Public License + version 2 as amended with additional clauses defined in the + file LICENSE in the main source directory. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. - - You should have received a copy of the GNU General Public - License along with this program; if not, write to the Free - Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, - MA 02111-1307, USA. + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + the file LICENSE for additional details. */ @@ -110,7 +105,7 @@ typedef struct { char index_open; /* default: '[' */ char index_close; /* default: ']' */ char index_mark; /* default: '#' */ - char *name_chars; /* default: "a-zA-Z0-9_" */ + const char *name_chars; /* default: "a-zA-Z0-9_" */ } var_syntax_t; typedef var_rc_t (*var_cb_value_t)( @@ -135,6 +130,6 @@ var_rc_t var_unescape (var_t *var, const char *src_ptr, int src_len, char *d var_rc_t var_expand (var_t *var, const char *src_ptr, int src_len, char **dst_ptr, int *dst_len, int force_expand); var_rc_t var_formatv (var_t *var, char **dst_ptr, int force_expand, const char *fmt, va_list ap); var_rc_t var_format (var_t *var, char **dst_ptr, int force_expand, const char *fmt, ...); -char *var_strerror (var_t *var, var_rc_t rc); +const char *var_strerror (var_t *var, var_rc_t rc); #endif /* __VAR_H__ */