From 4422fe601799f50fbf8ace8240f253ca4c22a39d Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Thu, 20 Mar 2003 15:39:53 +0000 Subject: [PATCH] Remove compile warning. --- src/bin/psql/common.c | 4 ++-- src/bin/psql/prompt.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/bin/psql/common.c b/src/bin/psql/common.c index 48405f91493..9f493a4d130 100644 --- a/src/bin/psql/common.c +++ b/src/bin/psql/common.c @@ -3,7 +3,7 @@ * * Copyright 2000 by PostgreSQL Global Development Group * - * $Header: /cvsroot/pgsql/src/bin/psql/common.c,v 1.60 2003/03/20 06:43:35 momjian Exp $ + * $Header: /cvsroot/pgsql/src/bin/psql/common.c,v 1.61 2003/03/20 15:39:52 momjian Exp $ */ #include "postgres_fe.h" #include "common.h" @@ -621,7 +621,7 @@ char parse_char(char **buf) long l; l = strtol(*buf, buf, 0); - (*buf)--; + --*buf; return (char)l; } diff --git a/src/bin/psql/prompt.c b/src/bin/psql/prompt.c index 194c6ef0f66..c65da457db8 100644 --- a/src/bin/psql/prompt.c +++ b/src/bin/psql/prompt.c @@ -3,7 +3,7 @@ * * Copyright 2000 by PostgreSQL Global Development Group * - * $Header: /cvsroot/pgsql/src/bin/psql/prompt.c,v 1.23 2003/03/20 06:43:35 momjian Exp $ + * $Header: /cvsroot/pgsql/src/bin/psql/prompt.c,v 1.24 2003/03/20 15:39:53 momjian Exp $ */ #include "postgres_fe.h" #include "prompt.h" @@ -171,7 +171,7 @@ get_prompt(promptStatus_t status) case '7': case '8': case '9': - *buf = parse_char(&p); + *buf = parse_char((char **)&p); break; case 'R':