File tree Expand file tree Collapse file tree 5 files changed +1
-29
lines changed Expand file tree Collapse file tree 5 files changed +1
-29
lines changed Original file line number Diff line number Diff line change @@ -1467,24 +1467,6 @@ char *PQhost(const PGconn *conn);
1467
1467
</listitem>
1468
1468
</varlistentry>
1469
1469
1470
- <varlistentry id="libpq-pqhostaddr">
1471
- <term>
1472
- <function>PQhostaddr</function>
1473
- <indexterm>
1474
- <primary>PQhostaddr</primary>
1475
- </indexterm>
1476
- </term>
1477
-
1478
- <listitem>
1479
- <para>
1480
- Returns the server numeric IP address of the connection.
1481
- <synopsis>
1482
- char *PQhostaddr(const PGconn *conn);
1483
- </synopsis>
1484
- </para>
1485
- </listitem>
1486
- </varlistentry>
1487
-
1488
1470
<varlistentry id="libpq-pqport">
1489
1471
<term>
1490
1472
<function>PQport</function>
Original file line number Diff line number Diff line change @@ -302,7 +302,7 @@ exec_command(const char *cmd,
302
302
else if (strcmp (cmd , "conninfo" ) == 0 )
303
303
{
304
304
char * db = PQdb (pset .db );
305
- char * host = ( PQhostaddr ( pset . db ) != NULL ) ? PQhostaddr ( pset . db ) : PQhost (pset .db );
305
+ char * host = PQhost (pset .db );
306
306
307
307
if (db == NULL )
308
308
printf (_ ("You are currently not connected to a database.\n" ));
Original file line number Diff line number Diff line change @@ -165,4 +165,3 @@ lo_lseek64 162
165
165
lo_tell64 163
166
166
lo_truncate64 164
167
167
PQconninfo 165
168
- PQhostaddr 166
Original file line number Diff line number Diff line change @@ -5340,14 +5340,6 @@ PQhost(const PGconn *conn)
5340
5340
}
5341
5341
}
5342
5342
5343
- char *
5344
- PQhostaddr (const PGconn * conn )
5345
- {
5346
- if (!conn )
5347
- return NULL ;
5348
- return conn -> pghostaddr ;
5349
- }
5350
-
5351
5343
char *
5352
5344
PQport (const PGconn * conn )
5353
5345
{
Original file line number Diff line number Diff line change @@ -301,7 +301,6 @@ extern char *PQdb(const PGconn *conn);
301
301
extern char * PQuser (const PGconn * conn );
302
302
extern char * PQpass (const PGconn * conn );
303
303
extern char * PQhost (const PGconn * conn );
304
- extern char * PQhostaddr (const PGconn * conn );
305
304
extern char * PQport (const PGconn * conn );
306
305
extern char * PQtty (const PGconn * conn );
307
306
extern char * PQoptions (const PGconn * conn );
You can’t perform that action at this time.
0 commit comments