PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ pgui_validate_connection()

static int pgui_validate_connection ( )
static

Definition at line 2502 of file shp2pgsql-gui.c.

2503{
2504 int i;
2505
2506 if (conn->port && strlen(conn->port))
2507 {
2508 for (i = 0; i < strlen(conn->port); i++)
2509 {
2510 if (!isdigit(conn->port[i]))
2511 {
2512 pgui_seterr(_("The connection port must be numeric!"));
2513 return 0;
2514 }
2515 }
2516 }
2517
2518 return 1;
2519}
static void static void static void static void pgui_seterr(const char *fmt,...) __attribute__((format(printf
static SHPCONNECTIONCONFIG * conn
#define _(String)
Definition shpcommon.h:24

References _, conn, pgui_seterr(), and shp_connection_state::port.

Referenced by pgui_action_connection_okay().

Here is the call graph for this function:
Here is the caller graph for this function: