possible.
static PyObject *crypt_crypt(PyObject *self, PyObject *args)
{
char *word, *salt;
- extern char * crypt();
+ extern char * crypt(const char *, const char *);
if (!PyArg_Parse(args, "(ss)", &word, &salt)) {
return NULL;
}
static PyObject *
-forms_do_or_check_forms(PyObject *dummy, PyObject *args, FL_OBJECT *(*func)())
+forms_do_or_check_forms(PyObject *dummy, PyObject *args, FL_OBJECT *(*func)(void))
{
FL_OBJECT *generic;
genericobject *g;
#ifdef UNUSED
static PyObject *
-fl_call(void (*func)(), PyObject *args)
+fl_call(void (*func)(void), PyObject *args)
{
if (!PyArg_NoArgs(args))
return NULL;
static PyObject *
-forms_file_selector_func(PyObject *args, char *(*func)())
+forms_file_selector_func(PyObject *args, char *(*func)(void))
{
char *str;
static void
calculate_path(void)
{
- extern char *Py_GetProgramName();
+ extern char *Py_GetProgramName(void);
static char delimiter[2] = {DELIM, '\0'};
static char separator[2] = {SEP, '\0'};
#ifdef __sgi
/* This is missing from rpcsvc/ypclnt.h */
-extern int yp_get_default_domain();
+extern int yp_get_default_domain(char **);
#endif
static PyObject *NisError;
/* X (',' X) [',']
*/
static int
-validate_repeating_list(node *tree, int ntype, int (*vfunc)(),
+validate_repeating_list(node *tree, int ntype, int (*vfunc)(node *),
const char *const name)
{
int nch = NCH(tree);
#ifdef HAVE_UNISTD_H
/* XXX These are for SunOS4.1.3 but shouldn't hurt elsewhere */
-extern int rename();
-extern int pclose();
-extern int lstat();
-extern int symlink();
-extern int fsync();
+extern int rename(const char *, const char *);
+extern int pclose(FILE *);
+extern int lstat(const char *, struct stat *);
+extern int symlink(const char *, const char *);
+extern int fsync(int fd);
#else /* !HAVE_UNISTD_H */
#if defined(PYCC_VACPP)
extern int mkdir(char *);
#include "Python.h"
-extern DL_EXPORT(int) Py_Main();
+extern DL_EXPORT(int) Py_Main(int, char **);
int
main(int argc, char **argv)
#ifdef __sgi
/* This is missing from unistd.h */
-extern void bzero();
+extern void bzero(void *, int);
#endif
#ifndef DONT_HAVE_SYS_TYPES_H
#endif
#if !defined(MS_WINDOWS) && !defined(PYOS_OS2) && !defined(__BEOS__)
-extern int gethostname(); /* For Solaris, at least */
+extern int gethostname(char *, size_t); /* For Solaris, at least */
#endif
#if defined(PYCC_VACPP)
#ifdef HAVE_FTIME
#include <sys/timeb.h>
#if !defined(MS_WINDOWS) && !defined(PYOS_OS2)
-extern int ftime();
+extern int ftime(struct timeb *);
#endif /* MS_WINDOWS */
#endif /* HAVE_FTIME */
#ifdef HAVE_STRPTIME
#if 0
-extern char *strptime(); /* Enable this if it's not declared in <time.h> */
+/* Enable this if it's not declared in <time.h> */
+extern char *strptime(const char *, const char *, struct tm *);
#endif
static PyObject *