/[svn]/ircd-hybrid-8/src/match.c
ViewVC logotype

Diff of /ircd-hybrid-8/src/match.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1398 by michael, Thu Apr 12 21:03:48 2012 UTC revision 1399 by michael, Mon May 7 19:32:01 2012 UTC
# Line 56  match(const char *mask, const char *name Line 56  match(const char *mask, const char *name
56    {    {
57      if (*m == '*')      if (*m == '*')
58      {      {
       /*  
        * XXX - shouldn't need to spin here, the mask should have been  
        * collapsed before match is called  
        */  
59        while (*m == '*')        while (*m == '*')
60          m++;          m++;
61        ma = m;        ma = m;
# Line 81  match(const char *mask, const char *name Line 77  match(const char *mask, const char *name
77      }      }
78      else if (!*n)      else if (!*n)
79      {      {
       /*  
        * XXX - shouldn't need to spin here, the mask should have been  
        * collapsed before match is called  
        */  
80        while (*m == '*')        while (*m == '*')
81          m++;          m++;
82        return *m == 0;        return *m == 0;
# Line 124  match_esc(const char *mask, const char * Line 116  match_esc(const char *mask, const char *
116    {    {
117      if (*m == '*')      if (*m == '*')
118      {      {
       /*  
        * XXX - shouldn't need to spin here, the mask should have been  
        * collapsed before match is called  
        */  
119        while (*m == '*')        while (*m == '*')
120          m++;          m++;
121        ma = m;        ma = m;
# Line 149  match_esc(const char *mask, const char * Line 137  match_esc(const char *mask, const char *
137      }      }
138      else if (!*n)      else if (!*n)
139      {      {
       /*  
        * XXX - shouldn't need to spin here, the mask should have been  
        * collapsed before match is called  
        */  
140        while (*m == '*')        while (*m == '*')
141          m++;          m++;
142        return *m == 0;        return *m == 0;

Legend:
Removed from v.1398  
changed lines
  Added in v.1399

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.26