PostGIS  3.7.0dev-r@@SVN_REVISION@@

◆ pgui_validate_connection()

static int pgui_validate_connection ( )
static

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

2478 {
2479  int i;
2480 
2481  if (conn->port && strlen(conn->port))
2482  {
2483  for (i = 0; i < strlen(conn->port); i++)
2484  {
2485  if (!isdigit(conn->port[i]))
2486  {
2487  pgui_seterr(_("The connection port must be numeric!"));
2488  return 0;
2489  }
2490  }
2491  }
2492 
2493  return 1;
2494 }
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: