Date: Tue, 21 Jan 2003 14:47:56 +0200 (EET) From: Esa A E Peuha Sender: peuha AT sirppi DOT Helsinki DOT FI To: djgpp-workers AT delorie DOT com Subject: Slight problem with mkdoc Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp-workers AT delorie DOT com Currently mkdoc.cc passes a pointer to PortInfo as first argument to bzero; if bzero is defined as taking a char * as first argument, this causes an error. The only way to avoid this error is to cast explicitly to char * (void * will cause a warning), but I'd prefer using memset instead of bzero. Is that OK? Index: mkdoc.cc =================================================================== RCS file: /cvs/djgpp/djgpp/src/mkdoc/mkdoc.cc,v retrieving revision 1.6 diff -u -p -r1.6 mkdoc.cc --- mkdoc.cc 8 Jan 2003 14:01:26 -0000 1.6 +++ mkdoc.cc 21 Jan 2003 12:30:32 -0000 @@ -162,7 +162,7 @@ Node::Node(char *Pname, char *Pcat) lines = 0; lastline = 0; for (int i = 0; i < NUM_PORT_TARGETS; i++) - bzero(&port_info[i], sizeof(port_info[i])); + memset(&port_info[i], 0, sizeof(port_info[i])); port_notes = NULL; last_port_note = NULL; written_portability = 0; -- Esa Peuha student of mathematics at the University of Helsinki http://www.helsinki.fi/~peuha/