From cc0f8a09d93ed7093792a23218177c141b34f0c2 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Wed, 21 Sep 2005 10:52:51 +0000 Subject: Add full support for --service option. svn path=/trunk/; revision=4307 --- rcfile_y.y | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'rcfile_y.y') diff --git a/rcfile_y.y b/rcfile_y.y index daff1a34..0aa9265e 100644 --- a/rcfile_y.y +++ b/rcfile_y.y @@ -173,6 +173,12 @@ serv_option : AKA alias_list | SERVICE STRING { current.server.service = $2; } + | SERVICE NUMBER { + int port = $2; + char buf[10]; + snprintf(buf, sizeof buf, "%d", port); + current.server.service = xstrdup(buf); + } | PORT NUMBER { int port = $2; char buf[10]; -- cgit v1.2.3