Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4422fe6

Browse files
committed
Remove compile warning.
1 parentcf4cee1 commit4422fe6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

‎src/bin/psql/common.c

Lines changed: 2 additions & 2 deletions
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/2006:43:35 momjian Exp $
6+
* $Header: /cvsroot/pgsql/src/bin/psql/common.c,v 1.61 2003/03/2015:39:52 momjian Exp $
77
*/
88
#include"postgres_fe.h"
99
#include"common.h"
@@ -621,7 +621,7 @@ char parse_char(char **buf)
621621
longl;
622622

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

‎src/bin/psql/prompt.c

Lines changed: 2 additions & 2 deletions
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/2006:43:35 momjian Exp $
6+
* $Header: /cvsroot/pgsql/src/bin/psql/prompt.c,v 1.24 2003/03/2015: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)

[8]ページ先頭

©2009-2025 Movatter.jp