Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 4422fe6

Browse files
committed
Remove compile warning.
1 parent cf4cee1 commit 4422fe6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/bin/psql/common.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright 2000 by PostgreSQL Global Development Group
55
*
6-
* $Header: /cvsroot/pgsql/src/bin/psql/common.c,v 1.60 2003/03/20 06:43:35 momjian Exp $
6+
* $Header: /cvsroot/pgsql/src/bin/psql/common.c,v 1.61 2003/03/20 15:39:52 momjian Exp $
77
*/
88
#include "postgres_fe.h"
99
#include "common.h"
@@ -621,7 +621,7 @@ char parse_char(char **buf)
621621
long l;
622622

623623
l = strtol(*buf, buf, 0);
624-
(*buf)--;
624+
--*buf;
625625
return (char)l;
626626
}
627627

src/bin/psql/prompt.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright 2000 by PostgreSQL Global Development Group
55
*
6-
* $Header: /cvsroot/pgsql/src/bin/psql/prompt.c,v 1.23 2003/03/20 06:43:35 momjian Exp $
6+
* $Header: /cvsroot/pgsql/src/bin/psql/prompt.c,v 1.24 2003/03/20 15:39:53 momjian Exp $
77
*/
88
#include "postgres_fe.h"
99
#include "prompt.h"
@@ -171,7 +171,7 @@ get_prompt(promptStatus_t status)
171171
case '7':
172172
case '8':
173173
case '9':
174-
*buf = parse_char(&p);
174+
*buf = parse_char((char **)&p);
175175
break;
176176

177177
case 'R':

0 commit comments

Comments
 (0)