diff src/imap-urlauth/imap-urlauth-worker-settings.c @ 19035:aabfe48db1cf

Changed type of internet port values to in_port_t everywhere. Created special SET_IN_PORT setting type for internet port values. Created net_str2port() for parsing internet port values. Removed several atoi() invocations in the process.
author Stephan Bosch <stephan@rename-it.nl>
date Sat, 29 Aug 2015 14:26:30 +0300
parents 3009a1a6f6d5
children 9e120590e0ef
line wrap: on
line diff
--- a/src/imap-urlauth/imap-urlauth-worker-settings.c	Sat Aug 29 14:21:27 2015 +0300
+++ b/src/imap-urlauth/imap-urlauth-worker-settings.c	Sat Aug 29 14:26:30 2015 +0300
@@ -57,7 +57,7 @@
 	DEF(SET_BOOL, verbose_proctitle),
 
 	DEF(SET_STR, imap_urlauth_host),
-	DEF(SET_UINT, imap_urlauth_port),
+	DEF(SET_IN_PORT, imap_urlauth_port),
 
 	SETTING_DEFINE_LIST_END
 };