]> www.infradead.org Git - users/dwmw2/openconnect.git/commitdiff
Fortinet: remove unused function
authorDaniel Lenski <dlenski@gmail.com>
Fri, 5 Feb 2021 02:55:04 +0000 (18:55 -0800)
committerDaniel Lenski <dlenski@gmail.com>
Mon, 29 Mar 2021 03:13:31 +0000 (20:13 -0700)
Signed-off-by: Daniel Lenski <dlenski@gmail.com>
fortinet.c

index 82bcd980708f5fa8a84e978d6d09a3b65beddace..8ca87a8b2982f24b9f0893ecd2bf98169a39f34d 100644 (file)
@@ -63,24 +63,6 @@ int fortinet_obtain_cookie(struct openconnect_info *vpninfo)
        return -EINVAL;
 }
 
-static int xmlnode_bool_or_int_value(struct openconnect_info *vpninfo, xmlNode *node)
-{
-       int ret = -1;
-       char *content = (char *)xmlNodeGetContent(node);
-       if (!content)
-               return -1;
-
-       if (isdigit(content[0]))
-               ret = atoi(content);
-       if (!strcasecmp(content, "yes") || !strcasecmp(content, "on"))
-               ret = 1;
-       if (!strcasecmp(content, "no") || !strcasecmp(content, "off"))
-               ret = 0;
-
-       free(content);
-       return ret;
-}
-
 /* We behave like CSTP — create a linked list in vpninfo->cstp_options
  * with the strings containing the information we got from the server,
  * and oc_ip_info contains const copies of those pointers.