cvs: php3 /functions/ posix.c string.c
| From: | Sascha Schumann | Date: | Wed, 31 May 2000 00:21:02 +0000 |
| Subject: | cvs: php3 /functions/ posix.c string.c | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-19825@lists.php.net to get a copy of this message | ||
sas Tue May 30 17:21:02 2000 EDT
Modified files:
/php3/functions posix.c string.c
Log:
Kill some harmless warnings.
Index: php3/functions/posix.c
diff -u php3/functions/posix.c:1.18 php3/functions/posix.c:1.19
--- php3/functions/posix.c:1.18 Fri Dec 31 20:31:16 1999
+++ php3/functions/posix.c Tue May 30 17:21:02 2000
@@ -27,7 +27,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: posix.c,v 1.18 2000/01/01 04:31:16 sas Exp $ */
+/* $Id: posix.c,v 1.19 2000/05/31 00:21:02 sas Exp $ */
#include "php.h"
@@ -144,7 +144,7 @@
void php3_info_posix(void)
{
- php3_printf("$Revision: 1.18 $\n");
+ php3_printf("$Revision: 1.19 $\n");
}
/* {{{ proto int posix_kill(int pid, int sig)
@@ -717,10 +717,7 @@
void php3_posix_getpwnam(INTERNAL_FUNCTION_PARAMETERS)
{
pval *name;
- char buffer[10];
struct passwd *pw;
- char **p;
- int count;
if (ARG_COUNT(ht) != 1 || getParameters(ht, 1, &name)==FAILURE) {
WRONG_PARAM_COUNT;
@@ -752,10 +749,7 @@
void php3_posix_getpwuid(INTERNAL_FUNCTION_PARAMETERS)
{
pval *uid;
- char buffer[10];
struct passwd *pw;
- char **p;
- int count;
if (ARG_COUNT(ht) != 1 || getParameters(ht, 1, &uid)==FAILURE) {
WRONG_PARAM_COUNT;
Index: php3/functions/string.c
diff -u php3/functions/string.c:1.209 php3/functions/string.c:1.210
--- php3/functions/string.c:1.209 Mon Feb 14 02:07:24 2000
+++ php3/functions/string.c Tue May 30 17:21:02 2000
@@ -29,7 +29,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: string.c,v 1.209 2000/02/14 10:07:24 thies Exp $ */
+/* $Id: string.c,v 1.210 2000/05/31 00:21:02 sas Exp $ */
#include <stdio.h>
#include "php.h"
#include "internal_functions.h"
@@ -1931,7 +1931,10 @@
_php3_strtolower(allow);
tbuf = emalloc(PHP_TAG_BUF_SIZE+1);
tp = tbuf;
- } else tp=NULL;
+ } else {
+ tp=NULL;
+ tbuf=NULL;
+ }
while(i<len) {
switch (c) {