From 54c751ffc4f79dcd916b4dffe690f59615c7146d Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Sat, 24 Oct 2009 14:10:37 +0000 Subject: Add back support for ports in snmp urls. * Note that for urls like: snmp://host1,host2:161/xxx the port applies to both hosts. --- common/config-parser.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/config-parser.h') diff --git a/common/config-parser.h b/common/config-parser.h index c804874..1df5d78 100644 --- a/common/config-parser.h +++ b/common/config-parser.h @@ -51,7 +51,7 @@ int cfg_parse_dir(const char* dirname, void* data); int cfg_parse_file(const char* filename, void* data, char** memory); /* A helper for parsing URIs */ -const char* cfg_parse_uri (char *uri, char** scheme, char** host, char** user, char** path, char** query); +const char* cfg_parse_uri (char *uri, char** scheme, char** host, char **port, char** user, char** path, char** query); /* Parsing snmp, snmp2 snmp2c etc... */ const char* cfg_parse_scheme (const char *input, enum snmp_version *scheme); -- cgit v1.2.3