delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/02/20/20:59:47

From: Keetnet AT wilmington DOT net (Keet / Foxbird)
Subject: bzero()...
20 Feb 1998 20:59:47 -0800 :
Message-ID: <3.0.32.19980220231222.007b8a20.cygnus.gnu-win32@wilmington.net>
Mime-Version: 1.0
To: gnu-win32 AT cygnus DOT com

Just noted something strange. When I create a socket structure with:

struct sockaddr_in socket1;

And then later on in the program call bzero() like this:

bzero(&socket1, sizeof(socket1);

I get a compiler warning about passing argument 1 from an incompatable
pointer type. Any idea what's going on here?

- Greg Neujahr
  keetnet AT wilmington DOT net


-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019