summaryrefslogtreecommitdiff
path: root/src/bin/psql/stringutils.c
diff options
context:
space:
mode:
authorBruce Momjian2003-12-01 22:14:40 +0000
committerBruce Momjian2003-12-01 22:14:40 +0000
commitb0ea3a8ee817d43b86329593b4995091aebf9060 (patch)
tree4e2010f6666f9ba450c990b95676747d12661e76 /src/bin/psql/stringutils.c
parent9f2ab62746e4639328fe346c37158f6094862d6e (diff)
This patch reduces some unsightly #ifdefs, and fixes two typos in
comments in the psql code. This doesn't make any functional change, so feel free to save it for 7.5 Neil Conway
Diffstat (limited to 'src/bin/psql/stringutils.c')
-rw-r--r--src/bin/psql/stringutils.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/bin/psql/stringutils.c b/src/bin/psql/stringutils.c
index efa37b6d89..ab6de4d9a7 100644
--- a/src/bin/psql/stringutils.c
+++ b/src/bin/psql/stringutils.c
@@ -7,10 +7,10 @@
*/
#include "postgres_fe.h"
-#include <assert.h>
#include <ctype.h>
#include "libpq-fe.h"
+#include "common.h"
#include "settings.h"
#include "stringutils.h"
@@ -234,10 +234,8 @@ strip_quotes(char *source, char quote, char escape, int encoding)
char *src;
char *dst;
-#ifdef USE_ASSERT_CHECKING
- assert(source);
- assert(quote);
-#endif
+ psql_assert(source);
+ psql_assert(quote);
src = dst = source;