pkgsrc/www/py-uwsgi/patches/patch-plugins_python_uwsgi_pymodule.c
adam f7eb462418 Changes 0.9.7.2:
* new option --touch-reload <file> to reload the stack on <file> modification
*  --static-map <mountpoint=documentroot> allows to serve static files
* fixed --post-limit management
* disallow empty socket names
* implemented exception_info WSGI support
* new options --reload-on-as <n> and --reload-on-rss <n> allows
  to recycle workers when their memory usage is higher than <n> MB
* fixed syslog support (use --log-syslog[=facility] to enable it)
* improved plugin loading system
* added support for RabbitMQ as event dispatcher for the Emperor
* fixed FreeBSD memory report
* PSGI plugin can be compiled without ithreads
* various Emperor fixes
* fixed a regression with setgroups()
* support for shared sockets (used in jails within network namespaces)
2011-04-08 12:26:29 +00:00

24 lines
718 B
C

$NetBSD: patch-plugins_python_uwsgi_pymodule.c,v 1.1 2011/04/08 12:26:29 adam Exp $
Fix compiler errors.
--- plugins/python/uwsgi_pymodule.c.orig 2011-04-08 09:58:04.000000000 +0000
+++ plugins/python/uwsgi_pymodule.c
@@ -343,7 +343,7 @@ PyObject *py_uwsgi_rpc(PyObject * self,
argv[i] = PyString_AsString(PyTuple_GetItem(args, i + 2));
}
- if (node == (char *) "") {
+ if (node[0] == '\0') {
size = uwsgi_rpc(func, 0, NULL, buffer);
}
else {
@@ -2662,7 +2662,7 @@ PyObject *py_uwsgi_queue_last(PyObject *
PyObject *py_uwsgi_cache_get(PyObject * self, PyObject * args) {
char *key;
- uint64_t valsize;
+ uint64_t valsize = 0;
Py_ssize_t keylen = 0;
char *value = NULL;
char *remote = NULL;