]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/patches/testing/bregtest.c
ebl fix compilation
[bacula/bacula] / bacula / patches / testing / bregtest.c
index 150bcb23941d40e1440b1941fe5da09d42291b17..52073ea00fe7597506d6f8e1078777f9e80a93fe 100644 (file)
@@ -5,7 +5,7 @@
  *
  */
 /*
-   Bacula® - The Network Backup Solution
+   Bacula\81Â\81® - The Network Backup Solution
 
    Copyright (C) 2006-2006 Free Software Foundation Europe e.V.
 
@@ -26,9 +26,9 @@
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
    02110-1301, USA.
 
-   Bacula® is a registered trademark of John Walker.
+   Bacula\81Â\81® is a registered trademark of John Walker.
    The licensor of Bacula is the Free Software Foundation Europe
-   (FSFE), Fiduciary Program, Sumatrastrasse 25, 8006 Zürich,
+   (FSFE), Fiduciary Program, Sumatrastrasse 25, 8006 Z\81Ã\81¼rich,
    Switzerland, email:ftf@fsfeurope.org.
 */
 
@@ -62,6 +62,13 @@ static void usage()
 
 int main(int argc, char *const *argv)
 {
+   char tab[500];
+   int len = bregexp_get_build_where_size("/tmp", "/tmp/toto", ".old");
+   
+   printf("%s\n", bregexp_build_where(tab, len, "/tmp", "/tmp/toto!", ".old"));
+   exit(0);
+
+
    regex_t preg;
    char prbuf[500];
    char *fname = NULL;
@@ -135,7 +142,7 @@ int main(int argc, char *const *argv)
 
    while (fgets(data, sizeof(data)-1, fd)) {
       strip_trailing_newline(data);
-      p = apply_bregexps(data, list);
+      apply_bregexps(data, list, &p);
       printf("%s => %s\n", data, p);
    }
    fclose(fd);