]> git.sur5r.net Git - bacula/bacula/commitdiff
kes Remove const char that causes problems with Python, which has
authorKern Sibbald <kern@sibbald.com>
Thu, 3 Jul 2008 10:06:43 +0000 (10:06 +0000)
committerKern Sibbald <kern@sibbald.com>
Thu, 3 Jul 2008 10:06:43 +0000 (10:06 +0000)
     older 'incorrect' headers.
kes  Add const char in dbd.c to avoid compiler warnings.

git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/branches/Branch-2.4@7295 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/cats/bdb.c
bacula/src/dird/pythondir.c
bacula/src/filed/pythonfd.c
bacula/src/stored/pythonsd.c
bacula/technotes-2.4

index d9862abab11eddc97f8c3ebe8bb488705c25882c..ad92c76e335b552751067a483c2ef80220983bc5 100644 (file)
@@ -1,20 +1,7 @@
-/*
- * Bacula Catalog Database routines written specifically
- *  for Bacula.  Note, these routines are VERY dumb and
- *  do not provide all the functionality of an SQL database.
- *  The purpose of these routines is to ensure that Bacula
- *  can limp along if no real database is loaded on the
- *  system.
- *
- *    Kern Sibbald, January MMI
- *
- *    Version $Id$
- *
- */
 /*
    Bacula® - The Network Backup Solution
 
-   Copyright (C) 2000-2006 Free Software Foundation Europe e.V.
+   Copyright (C) 2000-2008 Free Software Foundation Europe e.V.
 
    The main author of Bacula is Kern Sibbald, with contributions from
    many others, a complete list can be found in the file AUTHORS.
    (FSFE), Fiduciary Program, Sumatrastrasse 25, 8006 Zürich,
    Switzerland, email:ftf@fsfeurope.org.
 */
+/*
+ * Bacula Catalog Database routines written specifically
+ *  for Bacula.  Note, these routines are VERY dumb and
+ *  do not provide all the functionality of an SQL database.
+ *  The purpose of these routines is to ensure that Bacula
+ *  can limp along if no real database is loaded on the
+ *  system.
+ *
+ *    Kern Sibbald, January MMI
+ *
+ *    Version $Id$
+ *
+ */
 
 
 /* The following is necessary so that we do not include
@@ -86,7 +86,7 @@ dbid_list::~dbid_list()
    free(DBId);
 }
 
-static POOLMEM *make_filename(B_DB *mdb, char *name)
+static POOLMEM *make_filename(B_DB *mdb, const char *name)
 {
    char sep;
    POOLMEM *dbf;
index 60a2fe250337c2aedf3d2d5a120acb10e7044b45..c17606e2f4a6697b061aab4dd0e9b4f9a3013eca 100644 (file)
@@ -67,7 +67,7 @@ PyMethodDef JobMethods[] = {
 
 struct s_vars {
    const char *name;
-   const char *fmt;
+   char *fmt;
 };
 
 /* Read-only variables */
index be6f185dd533b86b90faa8aa4df131337c50d1a2..130f494e115e46ae02016c1fb31f5e344d371d9d 100644 (file)
@@ -72,7 +72,7 @@ ssize_t my_python_read(BFILE *bfd, void *buf, size_t count);
 
 struct s_vars {
    const char *name;
-   const char *fmt;
+   char *fmt;
 };
 
 /* Read-only variables */
index 1db1aa5423addbcbf5101b678efd67b6c55c9ea0..52568c2222ca5135be1ebad73f9942d9754b139f 100644 (file)
@@ -1,16 +1,7 @@
-/*
- *
- * Bacula interface to Python for the Storage Daemon
- *
- * Kern Sibbald, January MMV
- *
- *   Version $Id$
- *
- */
 /*
    Bacula® - The Network Backup Solution
 
-   Copyright (C) 2005-2006 Free Software Foundation Europe e.V.
+   Copyright (C) 2005-2008 Free Software Foundation Europe e.V.
 
    The main author of Bacula is Kern Sibbald, with contributions from
    many others, a complete list can be found in the file AUTHORS.
    (FSFE), Fiduciary Program, Sumatrastrasse 25, 8006 Zürich,
    Switzerland, email:ftf@fsfeurope.org.
 */
+/*
+ *
+ * Bacula interface to Python for the Storage Daemon
+ *
+ * Kern Sibbald, January MMV
+ *
+ *   Version $Id$
+ *
+ */
 
 
 #include "bacula.h"
@@ -59,7 +59,7 @@ PyMethodDef JobMethods[] = {
 
 struct s_vars {
    const char *name;
-   const char *fmt;
+   char *fmt;
 };
 
 static struct s_vars getvars[] = {
index cee370406615dbf52c0036f2b4e797f43e33250c..28f2aadb2063743a8129d9e785790c81e2932fbc 100644 (file)
@@ -1,6 +1,10 @@
               Technical notes on version 2.4
 
 General:
+03Jul08
+kes  Remove const char that causes problems with Python, which has
+     older 'incorrect' headers.
+kes  Add const char in dbd.c to avoid compiler warnings.
 02Jul08
 kes  Fix mtx-changer to detect both versions of Ubuntu (Debian)
      mt. This fixes bug #1116.