Subject: Error compiling tputs.c, conflicting types
To: None <current-users@NetBSD.ORG>
From: Jake Hamby <jehamby@lightside.com>
List: current-users
Date: 09/21/1995 16:03:58
When compiling tputs.c in libterm from NetBSD-current, it croaked with
this error:
===> libterm
cc -O -DCM_N -DCM_GT -DCM_B -DCM_D -c termcap.c
cc -O -DCM_N -DCM_GT -DCM_B -DCM_D -c tgoto.c
cc -O -DCM_N -DCM_GT -DCM_B -DCM_D -c tputs.c
tputs.c:69: conflicting types for `tputs'
/usr/include/curses.h:338: previous declaration of `tputs'
*** Error code 1
Stop.
It looks like the proper return value for tputs() is int, so I
changed tputs.c accordingly (it was returning void, before) and it worked.
Would anyone like to commit this change?
---Jake Hamby
jehamby@lightside.com