X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fmatch_glob.c;h=55e5367f5548c215bcce08e92f6072052c2b1b65;hp=343088351ce45bc1252b9e2a5dba40cdcf9f175e;hb=ffc8ea2eb23fe8c74fbeb96d05b31c477767923f;hpb=bbd768abbf09c38b0438e0186e50f3560b372dd9 diff --git a/src/match_glob.c b/src/match_glob.c index 3430883..55e5367 100644 --- a/src/match_glob.c +++ b/src/match_glob.c @@ -1,19 +1,17 @@ -/* - * Copyright (C) 1995-2007, Index Data ApS +/* This file is part of the YAZ toolkit. + * Copyright (C) Index Data * See the file LICENSE for details. - * - * $Id: match_glob.c,v 1.1 2007-10-24 13:50:02 adam Exp $ */ - /** * \file * \brief Glob expression match */ - +#if HAVE_CONFIG_H +#include +#endif #include #include -#include #include #include @@ -26,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; @@ -42,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