mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-12 18:34:36 +08:00
Remove compile warning.
This commit is contained in:
parent
cf4cee1b17
commit
4422fe6017
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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':
|
||||
|
Loading…
Reference in New Issue
Block a user