OSSP CVS Repository

ossp - Difference in ossp-pkg/l2/l2_sockmon.c versions 1.6 and 1.7
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/l2/l2_sockmon.c 1.6 -> 1.7

--- l2_sockmon.c 2001/09/10 06:43:10     1.6
+++ l2_sockmon.c 2001/09/13 16:19:06     1.7
@@ -33,6 +33,8 @@
 #include <stdio.h>
 #include <errno.h>
 
+#include "l2.h"
+
 #define BACKLOG 1024    /* max # pending connections */
 #define BUFFSIZ 256     /* max string size           */
 
@@ -41,8 +43,7 @@
     int  i        = 0;
     char *pszTemp = NULL;
 
-/*    ASSERT(pszIn);*/
-/*    ASSERT(*pszIn);*/
+    ASSERT(pszIn);
 
     if ((pszTemp = (char *)strdup(pszIn)) == NULL)
         return NULL;
@@ -60,8 +61,6 @@
     char pszBuf[BUFFSIZ];
     int  cc;
 
-/*    ASSERT(iSock);*/
-
     while (1) { /* Exits when read finishes */
         cc = read(iSock, pszBuf, sizeof (pszBuf));
         if (cc == -1) {
@@ -96,7 +95,6 @@
     int                 iTrans,   cc;
     socklen_t           faddrlen;
 
-/*    ASSERT(iPort);*/
     /* Set up an IPv4 TCP socket to listen on for connections. */
     if (iFamily == AF_INET6)
     {

CVSTrac 2.0.1