On Sat, May 23, 2009 at 05:00:08PM -0300, francis keyes wrote:
>  I added "#include <time.h>" to date .c but still get some errors:
>  date.c: In function *setthetime*:
>  date.c:192: warning: assignment makes pointer from integer without a cast
>  /tmp/ccZTmvsY.o: In function `netsettime':
>  netdate.c:(.text+0x1f1): undefined reference to `strlcpy'
>  collect2: ld returned 1 exit status

Try replacing strlcpy with strncpy. The latter is standard C, although
somewhat less safe.

R.F.Smith                                   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)

Attachment: pgp4c7nVoeYkE.pgp
Description: PGP signature

Reply via email to