OSSP CVS Repository

ossp - Check-in [2354]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 2354
Date: 2002-Jul-25 15:33:00 (local)
2002-Jul-25 13:33:00 (UTC)
User:thl
Branch:
Comment: proposal to use getservbyname() or successor
Tickets:
Inspections:
Files:
ossp-pkg/l2/l2_ch_irc.c      1.5 -> 1.6     1 inserted, 1 deleted
ossp-pkg/l2/l2_ch_syslog.c      1.29 -> 1.30     1 inserted, 1 deleted

ossp-pkg/l2/l2_ch_irc.c 1.5 -> 1.6

--- l2_ch_irc.c  2002/01/02 17:07:38     1.5
+++ l2_ch_irc.c  2002/07/25 13:33:00     1.6
@@ -82,7 +82,7 @@
     cfg->cpChannel  = strdup("#l2");
     cfg->bJoin      = 1;
     cfg->cpHost     = NULL;
-    cfg->cpPort     = strdup("6667");
+    cfg->cpPort     = strdup("6667"); /*FIXME[thl] better use getservbyname()*/
     cfg->nTimeout   = 30;
     cfg->saaServer  = NULL;
     cfg->saServer   = NULL;


ossp-pkg/l2/l2_ch_syslog.c 1.29 -> 1.30

--- l2_ch_syslog.c       2002/01/02 17:07:38     1.29
+++ l2_ch_syslog.c       2002/07/25 13:33:00     1.30
@@ -134,7 +134,7 @@
     /* initialize configuration with reasonable defaults */
     cfg->szTarget      = strdup("local");
     cfg->szRemoteHost  = NULL;
-    cfg->nRemotePort   = 514;
+    cfg->nRemotePort   = 514; /*FIXME[thl] better use getservbyname()*/
     if (uname(&uts) == 0) {
         cfg->szLocalHost = strdup(uts.nodename);
         if ((cp = strchr(cfg->szLocalHost, '.')) != NULL)

CVSTrac 2.0.1