From: Guido van Rossum Date: Thu, 5 Dec 1996 23:30:16 +0000 (+0000) Subject: Fix bad format char in error msg (%s should be %d). X-Git-Tag: v1.5a1~879 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=81b24c0221fd829d69c43367b1f9eb3c6ac81d70;p=python Fix bad format char in error msg (%s should be %d). Keep gcc -Wall happy. --- diff --git a/Modules/bsddbmodule.c b/Modules/bsddbmodule.c index c4155acb39..01b11160d5 100644 --- a/Modules/bsddbmodule.c +++ b/Modules/bsddbmodule.c @@ -193,7 +193,7 @@ bsddb_dealloc(dp) if (dp->di_bsddb != NULL) { if ((dp->di_bsddb->close)(dp->di_bsddb) != 0) fprintf(stderr, - "Python bsddb: close errno %s in dealloc\n", errno); + "Python bsddb: close errno %d in dealloc\n", errno); } PyMem_DEL(dp); } @@ -225,7 +225,6 @@ bsddb_subscript(dp, key) PyObject *key; { int status; - PyObject *v; DBT krec, drec; char *data; int size; @@ -381,7 +380,6 @@ bsddb_set_location(dp, key) PyObject *key; { int status; - PyObject *v; DBT krec, drec; char *data; int size;