[sr-dev] git:kamailio_3.0: utils/sercmd: Fixed getopt() missing param

Henning Westerholt henning.westerholt at 1und1.de
Mon Mar 8 15:36:00 CET 2010


Module: sip-router
Branch: kamailio_3.0
Commit: 6f62f7fad5a2c726d95ac6c47129494bbabc11b1
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=6f62f7fad5a2c726d95ac6c47129494bbabc11b1

Author: Marius Zbihlei <marius.zbihlei at 1and1.ro>
Committer: Henning Westerholt <henning.westerholt at 1und1.de>
Date:   Thu Jan 21 17:32:42 2010 +0200

utils/sercmd: Fixed getopt() missing param

Getopt was missing the -U param
(cherry picked from commit 7c701df1be3d71afe49e7d017a90fa10c081b790)

---

 utils/sercmd/sercmd.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/utils/sercmd/sercmd.c b/utils/sercmd/sercmd.c
index ada5ff6..1f1a721 100644
--- a/utils/sercmd/sercmd.c
+++ b/utils/sercmd/sercmd.c
@@ -1885,7 +1885,7 @@ int main(int argc, char** argv)
 	port_no=0;
 	sock_type=UNIXS_SOCK;
 	opterr=0;
-	while((c=getopt(argc, argv, "Vhs:D:R:vf:"))!=-1){
+	while((c=getopt(argc, argv, "UVhs:D:R:vf:"))!=-1){
 		switch(c){
 			case 'V':
 				printf("version: %s\n", version);




More information about the sr-dev mailing list