*BSD News Article 52089


Return to BSD News archive

Newsgroups: comp.unix.bsd.bsdi.misc
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!zombie.ncsc.mil!arlnews!sparky!lamp0.arl.mil!ramoore
From: ramoore@lamp0.arl.mil (Randy Moore)
Subject: Programming problem with BSDI cc complier: Incompat. pointer types char * != u_char *
Message-ID: <ramoore.16.000DB171@lamp0.arl.mil>
Lines: 16
Sender: news@arl.mil (The News System )
Organization: Army Research Lab
X-Newsreader: Trumpet for Windows [Version 1.0 Rev A]
Date: Mon, 25 Sep 1995 18:41:29 GMT

I am trying to compile some software (that I did not write) on a BSDI v 2.0.1 
system.  The software compiles, but I get several warnings that I am using 
Incompatible pointer types on lines that use the 'strlen' command.  The 
software defines the pointer as type 'u_char *' while the man page for strlen 
says that it wants to see type 'const char *.

I am not a unix programmer and so I'm not sure how important this is or how to 
fix it.  I am having some mysterious problems with this software that this 
mismatch could be causing.

If any BSDI unix programmer out there could bail me out, it would be much 
appreciated.

Thanks,

Randy Moore