Upstream status: https://github.com/redis/hiredis-py/pull/159 From c2a20695aae53de7b5160e29675344df0b805fa6 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Sat, 18 Mar 2023 15:18:08 -0400 Subject: [PATCH] pack: Replace sdsalloc.h with alloc.h Fixes #158. * src/pack.c: Replace sdsalloc.h with alloc.h. (pack_command): Replace s_malloc with hi_malloc. --- src/pack.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pack.c b/src/pack.c index 443e9d3..23e4004 100644 --- a/src/pack.c +++ b/src/pack.c @@ -16,7 +16,7 @@ extern sds sdscpylen(sds s, const char *t, size_t len); extern sds sdsnewlen(const void *init, size_t initlen); #endif -#include +#include PyObject * pack_command(PyObject *cmd) @@ -32,7 +32,7 @@ pack_command(PyObject *cmd) } Py_ssize_t tokens_number = PyTuple_Size(cmd); - sds *tokens = s_malloc(sizeof(sds) * tokens_number); + sds *tokens = hi_malloc(sizeof(sds) * tokens_number); if (tokens == NULL) { return PyErr_NoMemory(); @@ -118,4 +118,4 @@ cleanup: sdsfreesplitres(tokens, tokens_number); hi_free(lengths); return result; -} \ No newline at end of file +} base-commit: 8adb1b3cb38b82cdc73fa2d72879712da1f74e70 -- 2.39.1 reecommitdiff
AgeCommit message (Expand)Author
2020-01-08gnu: keepalived: Update to 2.0.19....* gnu/packages/cluster.scm (keepalived): Update to 2.0.19. Oleg Pykhalov
2019-12-11gnu: libraft: Update to 0.9.11....* gnu/packages/cluster.scm (libraft): Update to 0.9.11. [arguments]: Enable libuv I/O backend. Add phase to skip some tests. [inputs]: Add libuv. Signed-off-by: Efraim Flashner <efraim@flashner.co.il> Andrew Miloradovsky
2019-09-24gnu: keepalived: Update home page....* gnu/packages/cluster.scm (keepalived)[home-page]: Use HTTPS. Marius Bakke
2019-09-24gnu: keepalived: Update to 2.0.18....* gnu/packages/cluster.scm (keepalived): Update to 2.0.18. Marius Bakke
2019-09-24gnu: keepalived: Fix documentation generation....* gnu/packages/cluster.scm (keepalived)[arguments]: Copy software_design.png from the correct place. Marius Bakke
2019-09-08gnu: libraft: Fetch source from Git....* gnu/packages/cluster.scm (libraft)[source]: Switch to GIT-FETCH. Ludovic Courtès
2019-09-08gnu: Add libraft...* gnu/packages/cluster.scm (libraft): New variable. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Andrew Miloradovsky
2019-05-24gnu: Move Sphinx and friends to (gnu packages sphinx)....* gnu/packages/python-xyz.scm (python-sphinxcontrib-websupport, python2-sphinxcontrib-websupport, python-sphinx, python2-sphinx, python-sphinx-gallery, python2-sphinx-gallery, python-sphinx-rtd-theme, python2-sphinx-rtd-theme, python-guzzle-sphinx-theme, python2-guzzle-sphinx-theme, python-sphinxcontrib-newsfeed, python-sphinxcontrib-programoutput, python2-sphinxcontrib-programoutput, python-sphinx-repoze-interface, python2-sphinx-repoze-interface, python-sphinx-cloud-sptheme, python2-sphinx-cloud-sptheme, python-sphinx-alabaster-theme, python2-sphinx-alabaster-theme, python-sphinx-me, python-sphinxcontrib-svg2pdfconverter): Move to ... (gnu): * gnu/packages/sphinx.scm: ... here. New file. * gnu/local.mk (GNU_SYSTEM_MODULES): Adjust accordingly. * gnu/packages/admin.scm, gnu/packages/bioinformatics.scm, gnu/packages/calendar.scm, gnu/packages/cluster.scm, gnu/packages/databases.scm, gnu/packages/dav.scm, gnu/packages/disk.scm, gnu/packages/django.scm, gnu/packages/elf.scm, gnu/packages/emacs-xyz.scm, gnu/packages/emulators.scm, gnu/packages/finance.scm, gnu/packages/image.scm, gnu/packages/libffi.scm, gnu/packages/mail.scm, gnu/packages/mpd.scm, gnu/packages/openstack.scm, gnu/packages/pdf.scm, gnu/packages/python-web.scm, gnu/packages/search.scm, gnu/packages/statistics.scm, gnu/packages/storage.scm, gnu/packages/sync.scm, gnu/packages/terminals.scm, gnu/packages/tls.scm, gnu/packages/web.scm: Adjust module imports. Marius Bakke