shishi-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CVS shishi/lib


From: shishi-commit
Subject: CVS shishi/lib
Date: Fri, 03 Dec 2004 04:25:33 +0100

Update of /home/cvs/shishi/lib
In directory dopio:/tmp/cvs-serv3163

Modified Files:
        cfg.c 
Log Message:
Use constant.


--- /home/cvs/shishi/lib/cfg.c  2004/12/02 02:37:59     1.60
+++ /home/cvs/shishi/lib/cfg.c  2004/12/03 03:25:33     1.61
@@ -26,6 +26,8 @@
 
 #include "getsubopt.h"
 
+#define KDC_SERVICE_PORT "\x6b\x65\x72\x62\x65\x72\x6f\x73"
+
 enum
 {
   DEFAULT_REALM_OPTION = 0,
@@ -315,7 +317,7 @@
                memcpy (&sinaddr->sin_addr, he->h_addr_list[0], he->h_length);
                if (port == -1)
                  {
-                   se = getservbyname ("kerberos", NULL);
+                   se = getservbyname (KDC_SERVICE_PORT, NULL);
                    if (se)
                      sinaddr->sin_port = se->s_port;
                    else





reply via email to

[Prev in Thread] Current Thread [Next in Thread]