X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fmatch_glob.c;h=cf71f5648f9caf88740ac62220438c7bd5b5e5a7;hp=f60009c6efeb1d5cd6daf8ce0ebf4065fd4acc1c;hb=fe42f72dc30321041420cf2d1a83867b1c450f38;hpb=2788a4851b551e1a3efb320a2878b809f2d8a9d7 diff --git a/src/match_glob.c b/src/match_glob.c index f60009c..cf71f56 100644 --- a/src/match_glob.c +++ b/src/match_glob.c @@ -1,17 +1,17 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2009 Index Data + * Copyright (C) 1995-2012 Index Data * See the file LICENSE for details. */ - /** * \file * \brief Glob expression match */ - +#if HAVE_CONFIG_H +#include +#endif #include #include -#include #include #include @@ -24,7 +24,7 @@ int yaz_match_glob(const char *glob, const char *text) return *text == '\0'; if (glob[0] == '*') { - do + do { if (yaz_match_glob(glob+1, text)) return 1; @@ -40,6 +40,7 @@ int yaz_match_glob(const char *glob, const char *text) /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab