cvs: php3 /functions string.c
| From: | Rasmus Lerdorf | Date: | Fri, 29 Sep 2000 09:06:28 +0000 |
| Subject: | cvs: php3 /functions string.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-1873@lists.php.net to get a copy of this message | ||
rasmus Fri Sep 29 02:06:28 2000 EDT
Modified files:
/php3/functions string.c
Log:
Fix signed/unsigned aesthetic issue
Index: php3/functions/string.c
diff -u php3/functions/string.c:1.214 php3/functions/string.c:1.215
--- php3/functions/string.c:1.214 Sat Jul 29 22:09:46 2000
+++ php3/functions/string.c Fri Sep 29 02:06:28 2000
@@ -30,7 +30,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: string.c,v 1.214 2000/07/30 05:09:46 rasmus Exp $ */
+/* $Id: string.c,v 1.215 2000/09/29 09:06:28 rasmus Exp $ */
#include <stdio.h>
#include "php.h"
#include "internal_functions.h"
@@ -45,7 +45,7 @@
static char hexconvtab[] = "0123456789abcdef";
-static char *php_bin2hex(const unsigned char *old, const size_t oldlen, size_t *newlen)
+static unsigned char *php_bin2hex(const unsigned char *old, const size_t oldlen, size_t *newlen)
{
unsigned char *new = NULL;
size_t i, j;
@@ -70,7 +70,7 @@
PHP_FUNCTION(bin2hex)
{
pval *data;
- char *new;
+ unsigned char *new;
size_t newlen;
if(ARG_COUNT(ht) != 1 || getParameters(ht, 1, &data) == FAILURE) {