aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gsql_conn.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gsql_conn.c b/src/gsql_conn.c
index 4a48de7..3a44c18 100644
--- a/src/gsql_conn.c
+++ b/src/gsql_conn.c
@@ -24,3 +24,3 @@
-int num_iface;
+static int num_iface;
struct sql_iface sql_iftab[MAX_IFACES];
@@ -207,2 +207,5 @@ sql_register_iface(struct sql_iface *ifp)
{
+ int n = sql_find_iface(ifp->name);
+ if (n != -1)
+ return n;
if (num_iface >= MAX_IFACES)

Return to:

Send suggestions and report system problems to the System administrator.