OSDN Git Service

Remove compile warning.
authorBruce Momjian <bruce@momjian.us>
Thu, 20 Mar 2003 15:39:53 +0000 (15:39 +0000)
committerBruce Momjian <bruce@momjian.us>
Thu, 20 Mar 2003 15:39:53 +0000 (15:39 +0000)
src/bin/psql/common.c
src/bin/psql/prompt.c

index 48405f9..9f493a4 100644 (file)
@@ -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;
 }
 
index 194c6ef..c65da45 100644 (file)
@@ -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':