Commit 4422fe60 authored by Bruce Momjian's avatar Bruce Momjian

Remove compile warning.

parent cf4cee1b
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* *
* Copyright 2000 by PostgreSQL Global Development Group * 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 "postgres_fe.h"
#include "common.h" #include "common.h"
...@@ -621,7 +621,7 @@ char parse_char(char **buf) ...@@ -621,7 +621,7 @@ char parse_char(char **buf)
long l; long l;
l = strtol(*buf, buf, 0); l = strtol(*buf, buf, 0);
(*buf)--; --*buf;
return (char)l; return (char)l;
} }
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* *
* Copyright 2000 by PostgreSQL Global Development Group * 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 "postgres_fe.h"
#include "prompt.h" #include "prompt.h"
...@@ -171,7 +171,7 @@ get_prompt(promptStatus_t status) ...@@ -171,7 +171,7 @@ get_prompt(promptStatus_t status)
case '7': case '7':
case '8': case '8':
case '9': case '9':
*buf = parse_char(&p); *buf = parse_char((char **)&p);
break; break;
case 'R': case 'R':
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment