Ignore:
Timestamp:
Dec 5, 2012, 5:29:46 PM (8 years ago)
Author:
jordan
Message:

Follow more common whitespace style conventions in the C code (libtransmission, daemon, utils, cli, gtk).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/wildmat.c

    r12204 r13625  
    4747    /* Is "*" a common pattern? */
    4848#define OPTIMIZE_JUST_STAR
    49     /* Do tar(1) matching rules, which ignore a trailing slash? */
     49    /* Do tar (1) matching rules, which ignore a trailing slash? */
    5050#undef MATCH_TAR_PATTERN
    5151
     
    5555*/
    5656static int
    57 DoMatch( const char * text, const char * p )
     57DoMatch (const char * text, const char * p)
    5858{
    5959    register int        last;
     
    6161    register int        reverse;
    6262
    63     for ( ; *p; text++, p++) {
     63    for (; *p; text++, p++) {
    6464        if (*text == '\0' && *p != '*')
    6565            return ABORT;
     
    8484                return true;
    8585            while (*text)
    86                 if ((matched = DoMatch(text++, p)) != false)
     86                if ((matched = DoMatch (text++, p)) != false)
    8787                    return matched;
    8888            return ABORT;
     
    112112/* User-level routine. returns whether or not 'text' and 'p' matched */
    113113bool
    114 tr_wildmat(const char * text, const char * p )
     114tr_wildmat (const char * text, const char * p)
    115115{
    116116    if (p[0] == '*' && p[1] == '\0')
    117117        return true;
    118118
    119     return DoMatch(text, p) == true;
     119    return DoMatch (text, p) == true;
    120120}
Note: See TracChangeset for help on using the changeset viewer.