OSSP CVS Repository

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

Check-in Number: 655
Date: 2001-Aug-12 15:44:10 (local)
2001-Aug-12 13:44:10 (UTC)
User:rse
Branch:
Comment: cleanup sa library
Tickets:
Inspections:
Files:
ossp-pkg/lmtp2nntp/sa.c      1.1 -> 1.2     3 inserted, 12 deleted
ossp-pkg/lmtp2nntp/sa.h      1.1 -> 1.2     6 inserted, 5 deleted

ossp-pkg/lmtp2nntp/sa.c 1.1 -> 1.2

--- sa.c 2001/08/07 09:04:31     1.1
+++ sa.c 2001/08/12 13:44:10     1.2
@@ -1,6 +1,5 @@
 /*
- *  sa.c: Socket Address library (implementation)
- *
+ *  SA - Socket Address Library
  *  Copyright (c) 2001 The OSSP Project (http://www.ossp.org/)
  *  Copyright (c) 2001 Cable & Wireless Deutschland (http://www.cw.com/de/)
  *
@@ -25,6 +24,8 @@
  *  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  *  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  *  SUCH DAMAGE.
+ *
+ *  sa.c: implementation
  */
 
 #include <stdio.h>
@@ -155,16 +156,6 @@
     rc->sa_len = sl;
     rc->sa_proto = nProto;
 
-    /*  create socket
-     *  if ((s = socket(rc->sa_buf->sa_family, SOCK_STREAM, rc->sa_proto)) == -1)
-     *      return NULL;
-     */
-
-    /*  connect socket to remote host/port
-     *
-     *  if (connect(s, rc->sa_buf, rc->sa_len) < 0)
-     *      return -1;
-     */
     return rc;
 }
 


ossp-pkg/lmtp2nntp/sa.h 1.1 -> 1.2

--- sa.h 2001/08/07 09:04:32     1.1
+++ sa.h 2001/08/12 13:44:10     1.2
@@ -1,6 +1,5 @@
 /*
- *  sa.h: Socket Address library (API definition)
- *
+ *  SA - Socket Address Library
  *  Copyright (c) 2001 The OSSP Project (http://www.ossp.org/)
  *  Copyright (c) 2001 Cable & Wireless Deutschland (http://www.cw.com/de/)
  *
@@ -25,10 +24,12 @@
  *  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  *  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  *  SUCH DAMAGE.
+ *
+ *  sa.h: API definition
  */
 
-#ifndef __SOCK_H__
-#define __SOCK_H__
+#ifndef __SA_H__
+#define __SA_H__
 
 #include <netdb.h>
 #include <sys/types.h>
@@ -50,5 +51,5 @@
 sa_t *sa_create(int, ...);
 void  sa_destroy(sa_t *);
 
-#endif /* __SOCK_H__ */
+#endif /* __SA_H__ */
 

CVSTrac 2.0.1