From 2cabbf89f9f696a4786476a4eda7a59a1c16d486 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Tue, 2 Aug 2005 00:41:50 +0000 Subject: Remove port/service dualism and make everything a service. svn path=/trunk/; revision=4219 --- rcfile_y.y | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'rcfile_y.y') diff --git a/rcfile_y.y b/rcfile_y.y index cbbf6b07..518b0ecb 100644 --- a/rcfile_y.y +++ b/rcfile_y.y @@ -153,11 +153,7 @@ serv_option : AKA alias_list #else current.server.authenticate = A_KERBEROS_V4; #endif /* KERBEROS_V5 */ -#ifdef INET6_ENABLE current.server.service = KPOP_PORT; -#else /* INET6_ENABLE */ - current.server.port = KPOP_PORT; -#endif /* INET6_ENABLE */ } | PRINCIPAL STRING {current.server.principal = xstrdup($2);} | ESMTPNAME STRING {current.server.esmtp_name = xstrdup($2);} @@ -175,19 +171,13 @@ serv_option : AKA alias_list | CHECKALIAS {current.server.checkalias = FLAG_TRUE;} | NO CHECKALIAS {current.server.checkalias = FLAG_FALSE;} | SERVICE STRING { -#ifdef INET6_ENABLE current.server.service = $2; -#endif /* INET6_ENABLE */ } | PORT NUMBER { -#ifdef INET6_ENABLE int port = $2; char buf[10]; - sprintf(buf, "%d", port); + snprintf(buf, sizeof buf, "%d", port); current.server.service = xstrdup(buf); -#else - current.server.port = $2; -#endif /* INET6_ENABLE */ } | INTERVAL NUMBER {current.server.interval = $2;} -- cgit v1.2.3