]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/dird/expand.c
- Fix bug 207. jcr use count off by one when manually
[bacula/bacula] / bacula / src / dird / expand.c
index 11bab82bb15db87e8c40b6da3d225e6fc36f5b7d..112da2fe121906520782b356dd1e0fb9955899dc 100644 (file)
@@ -8,7 +8,7 @@
  *   Version $Id$
  */
 /*
-   Copyright (C) 2000-2003 Kern Sibbald and John Walker
+   Copyright (C) 2003-2004 Kern Sibbald and John Walker
 
    This program is free software; you can redistribute it and/or
    modify it under the terms of the GNU General Public License as
@@ -74,7 +74,7 @@ static int date_item(JCR *jcr, int code,
 static int job_item(JCR *jcr, int code, 
              const char **val_ptr, int *val_len, int *val_size)
 {
-   char *str = " ";
+   const char *str = " ";
    char buf[20];
 
    switch (code) {
@@ -127,7 +127,7 @@ static int job_item(JCR *jcr, int code,
 }
 
 
-struct s_built_in_vars {char *var_name; int code; int (*func)(JCR *jcr, int code,
+struct s_built_in_vars {const char *var_name; int code; int (*func)(JCR *jcr, int code,
                         const char **val_ptr, int *val_len, int *val_size);};
 
 /*