cvs: /php4/ext/pgsql pgsql.c
| From: | Sascha Schumann | Date: | Sat, 17 Jul 1999 08:56:38 +0000 |
| Subject: | cvs: /php4/ext/pgsql pgsql.c | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-2174@lists.php.net to get a copy of this message | ||
sas Sat Jul 17 08:56:38 1999 EDT
Modified files:
/php4/ext/pgsql pgsql.c
Log:
void some warnings
Index: php4/ext/pgsql/pgsql.c
diff -u php4/ext/pgsql/pgsql.c:1.8 php4/ext/pgsql/pgsql.c:1.9
--- php4/ext/pgsql/pgsql.c:1.8 Fri Jul 16 13:27:42 1999
+++ php4/ext/pgsql/pgsql.c Sat Jul 17 08:56:38 1999
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: pgsql.c,v 1.8 1999/07/16 17:27:42 zeev Exp $ */
+/* $Id: pgsql.c,v 1.9 1999/07/17 12:56:38 sas Exp $ */
#include <stdlib.h>
@@ -865,7 +865,7 @@
static void php3_pgsql_fetch_hash(INTERNAL_FUNCTION_PARAMETERS, int result_type)
{
- pval *result, *row, *pval_ptr, *arg3;
+ pval *result, *row, *arg3;
PGresult *pgsql_result;
pgsql_result_handle *pg_result;
int type;
@@ -1455,7 +1455,7 @@
tbytes = 0;
while ((nbytes = lo_read((PGconn *)pgsql->conn, pgsql->lofd, buf, 8192))>0) {
for(i=0; i<nbytes; i++) {
- if (output) PUTC(buf[i]);
+ if (output) { (void) PUTC(buf[i]); }
}
tbytes += i;
}