Klaus Demo bjoern / 90044c0
Fix function declaration warnings "warning: function declaration isn’t a prototype" in GCC Patrick Lucas 8 years ago
5 changed file(s) with 5 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
8989 {NULL, NULL, 0, NULL}
9090 };
9191
92 PyMODINIT_FUNC initbjoern()
92 PyMODINIT_FUNC initbjoern(void)
9393 {
9494 _init_common();
9595 _init_filewrapper();
2020 enum http_status { HTTP_BAD_REQUEST = 1, HTTP_LENGTH_REQUIRED, HTTP_SERVER_ERROR };
2121
2222 size_t unquote_url_inplace(char* url, size_t len);
23 void (_init_common)();
23 void _init_common(void);
2424
2525 PyObject *_REMOTE_ADDR, *_PATH_INFO, *_QUERY_STRING, *_REQUEST_METHOD, *_GET,
2626 *_HTTP_CONTENT_LENGTH, *_CONTENT_LENGTH, *_HTTP_CONTENT_TYPE, *_CONTENT_TYPE,
4444 (destructor)FileWrapper_dealloc, /* tp_dealloc */
4545 };
4646
47 void _init_filewrapper()
47 void _init_filewrapper(void)
4848 {
4949 FileWrapper_Type.tp_new = FileWrapper_New;
5050 FileWrapper_Type.tp_iter = FileWrapper_Iter;
88 PyObject* file;
99 } FileWrapper;
1010
11 void (_init_filewrapper)();
11 void _init_filewrapper(void);
5959 Py_END_ALLOW_THREADS
6060 }
6161
62 static void cleanup() {
62 static void cleanup(void) {
6363 close(sockinfo.fd);
6464 if(sockinfo.filename)
6565 unlink(sockinfo.filename);