]> code.citadel.org Git - citadel.git/commitdiff
* sysdep.c ig_tcp_server() - use IPPROTO_TCP instead of getprotobyname()
authorArt Cancro <ajc@citadel.org>
Mon, 12 Feb 2001 04:31:34 +0000 (04:31 +0000)
committerArt Cancro <ajc@citadel.org>
Mon, 12 Feb 2001 04:31:34 +0000 (04:31 +0000)
citadel/ChangeLog
citadel/sysdep.c

index fdf06a1a4181f5e5ab293ae2a32089097e80b9b0..b317805a16f420d0739a6d8b2f5d24d5af10d18d 100644 (file)
@@ -1,4 +1,7 @@
  $Log$
+ Revision 573.87  2001/02/12 04:31:34  ajc
+ * sysdep.c ig_tcp_server() - use IPPROTO_TCP instead of getprotobyname()
+
  Revision 573.86  2001/02/08 04:45:58  ajc
  * Fixed namespace problems resulting from the automatic namespece prefixing
    added to create_room().  Also added the ability to specify "create a mailbox
@@ -2394,4 +2397,3 @@ Sat Jul 11 00:20:48 EDT 1998 Nathan Bryant <bryant@cs.usm.maine.edu>
 
 Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
        * Initial CVS import 
-
index 064a218a653161923cc647bbbeb9f28535bb672e..cc40a208ee5b1537f7a072e892a898eb427ef1e7 100644 (file)
@@ -297,8 +297,7 @@ int ig_tcp_server(int port_number, int queue_len)
        sin.sin_addr.s_addr = INADDR_ANY;
        sin.sin_port = htons((u_short)port_number);
 
-       s = socket(PF_INET, SOCK_STREAM,
-               (getprotobyname("tcp")->p_proto));
+       s = socket(PF_INET, SOCK_STREAM, IPPROTO_TCP);
 
        if (s < 0) {
                lprintf(1, "citserver: Can't create a socket: %s\n",