mostly by using (void) instead of () for functions with empty parameter lists.
extern int siteidx;
extern Site *bottomsite;
- extern void siteinit();
- extern Site *getsite();
+ extern void siteinit(void);
+ extern Site *getsite(void);
extern double dist(Site *, Site *); /* Distance between two sites */
extern void deref(Site *); /* Increment refcnt of site */
extern void ref(Site *); /* Decrement refcnt of site */
#include "voronoi.h"
-void voronoi(int triangulate, Site * (*nextsite) ())
+void voronoi(int triangulate, Site * (*nextsite) (void))
{
Site *newsite, *bot, *top, *temp, *p;
Site *v;
#include "site.h"
- extern void voronoi(int, Site * (*)());
+ extern void voronoi(int, Site * (*)(void));
#endif
/* code to initialize mutexes */
static Vtmutex_t Sfmutex;
static Vtonce_t Sfonce = VTONCE_INITDATA;
-static void _sfoncef()
+static void _sfoncef(void)
{
vtmtxopen(_Sfmutex, VT_INIT);
vtmtxopen(&_Sfpool.mutex, VT_INIT);