httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bill Morris <bmor...@memetic.com>
Subject [PATCH] http_main.c compile warning
Date Mon, 28 Jul 1997 00:51:45 GMT
I dont know if this is still a problem since I am having trouble
updating my local repository. What is the "right" way to
update a local repository from the CVS snapshots?

-bill

gcc -c   -O2 -DSOLARIS2=250   http_main.c
http_main.c: In function `sock_bind':
http_main.c:1864: warning: passing arg 2 of `bind' discards `const' from
pointer target type


Index: apache/src/http_main.c
===================================================================
RCS file: /export/home/cvs/apache/apache/src/http_main.c,v
retrieving revision 1.187
diff -c -r1.187 http_main.c
*** /tmp/T0a001G5	Sun Jul 27 20:04:52 1997
--- http_main.c	Sun Jul 27 19:59:09 1997
***************
*** 1861,1867 ****
  /* MPE requires CAP=PM and GETPRIVMODE to bind to ports less than 1024
*/
      if (ntohs(server->sin_port) < 1024) GETPRIVMODE();
  #endif
!     if(bind(s, (const struct sockaddr *)server,sizeof(struct
sockaddr_in)) == -1)
      {
          perror("bind");
  #ifdef MPE
--- 1861,1867 ----
  /* MPE requires CAP=PM and GETPRIVMODE to bind to ports less than 1024
*/
      if (ntohs(server->sin_port) < 1024) GETPRIVMODE();
  #endif
!     if(bind(s, (struct sockaddr *)server,sizeof(struct sockaddr_in))
== -1)
      {
          perror("bind");
  #ifdef MPE

Mime
View raw message