File tree Expand file tree Collapse file tree 3 files changed +5
-24
lines changed
Expand file tree Collapse file tree 3 files changed +5
-24
lines changed Original file line number Diff line number Diff line change 33 *
44 * Copyright (c) 2000-2005, PostgreSQL Global Development Group
55 *
6- * $PostgreSQL: pgsql/src/bin/psql/common.c,v 1.97 2005/04/28 13:09:59 momjian Exp $
6+ * $PostgreSQL: pgsql/src/bin/psql/common.c,v 1.98 2005/05/30 18:28:11 momjian Exp $
77 */
88#include "postgres_fe.h"
99#include "common.h"
@@ -1237,17 +1237,6 @@ command_no_begin(const char *query)
12371237}
12381238
12391239
1240- char
1241- parse_char (char * * buf )
1242- {
1243- long l ;
1244-
1245- l = strtol (* buf , buf , 0 );
1246- -- * buf ;
1247- return (char ) l ;
1248- }
1249-
1250-
12511240/*
12521241 * Test if the current user is a database superuser.
12531242 *
Original file line number Diff line number Diff line change 33 *
44 * Copyright (c) 2000-2005, PostgreSQL Global Development Group
55 *
6- * $PostgreSQL: pgsql/src/bin/psql/common.h,v 1.42 2005/01/01 05:43:08 momjian Exp $
6+ * $PostgreSQL: pgsql/src/bin/psql/common.h,v 1.43 2005/05/30 18:28:11 momjian Exp $
77 */
88#ifndef COMMON_H
99#define COMMON_H
@@ -60,12 +60,6 @@ extern bool SendQuery(const char *query);
6060extern bool is_superuser (void );
6161extern const char * session_username (void );
6262
63- /* Parse a numeric character code from the string pointed at by *buf, e.g.
64- * one written as 0x0c (hexadecimal) or 015 (octal); advance *buf to the last
65- * character of the numeric character code.
66- */
67- extern char parse_char (char * * buf );
68-
6963extern char * expand_tilde (char * * filename );
7064
7165#endif /* COMMON_H */
Original file line number Diff line number Diff line change 33 *
44 * Copyright (c) 2000-2005, PostgreSQL Global Development Group
55 *
6- * $PostgreSQL: pgsql/src/bin/psql/prompt.c,v 1.38 2005/01/01 05:43:08 momjian Exp $
6+ * $PostgreSQL: pgsql/src/bin/psql/prompt.c,v 1.39 2005/05/30 18:28:11 momjian Exp $
77 */
88#include "postgres_fe.h"
99#include "prompt.h"
@@ -175,11 +175,9 @@ get_prompt(promptStatus_t status)
175175 case '5' :
176176 case '6' :
177177 case '7' :
178- case '8' :
179- case '9' :
180- * buf = parse_char ((char * * ) & p );
178+ * buf = (char ) strtol (p , (char * * )& p , 8 );
179+ -- p ;
181180 break ;
182-
183181 case 'R' :
184182 switch (status )
185183 {
You can’t perform that action at this time.
0 commit comments