diff options
author | Neil Conway <neilc@samurai.com> | 2006-01-11 08:43:13 +0000 |
---|---|---|
committer | Neil Conway <neilc@samurai.com> | 2006-01-11 08:43:13 +0000 |
commit | fb627b76ccc4c7074e37b6b94155864f6cbd1b23 (patch) | |
tree | a8e7b008b4f6c2a2188641937e5b984f40b60104 /src/backend/utils/adt/like.c | |
parent | 762bcbdba2a2519b01b17b2c2b28f36e5ee9ea25 (diff) | |
download | postgresql-fb627b76ccc4c7074e37b6b94155864f6cbd1b23.tar.gz postgresql-fb627b76ccc4c7074e37b6b94155864f6cbd1b23.zip |
Cosmetic code cleanup: fix a bunch of places that used "return (expr);"
rather than "return expr;" -- the latter style is used in most of the
tree. I kept the parentheses when they were necessary or useful because
the return expression was complex.
Diffstat (limited to 'src/backend/utils/adt/like.c')
-rw-r--r-- | src/backend/utils/adt/like.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/backend/utils/adt/like.c b/src/backend/utils/adt/like.c index 4bf2cd33872..7b264952244 100644 --- a/src/backend/utils/adt/like.c +++ b/src/backend/utils/adt/like.c @@ -11,7 +11,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/utils/adt/like.c,v 1.62 2005/10/15 02:49:28 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/utils/adt/like.c,v 1.63 2006/01/11 08:43:12 neilc Exp $ * *------------------------------------------------------------------------- */ @@ -49,19 +49,19 @@ wchareq(char *p1, char *p2) /* Optimization: quickly compare the first byte. */ if (*p1 != *p2) - return (0); + return 0; p1_len = pg_mblen(p1); if (pg_mblen(p2) != p1_len) - return (0); + return 0; /* They are the same length */ while (p1_len--) { if (*p1++ != *p2++) - return (0); + return 0; } - return (1); + return 1; } /*-------------------- @@ -91,7 +91,7 @@ iwchareq(char *p1, char *p2) * different characters */ else if ((unsigned char) *p1 < CHARMAX || (unsigned char) *p2 < CHARMAX) - return (0); + return 0; /* * ok, p1 and p2 are both > CHARMAX, then they must be multibyte |