cvs: pecl /id3 id3.c php_id3.h
| From: | Carsten Lucke | Date: | Mon, 23 Aug 2004 22:10:23 +0000 |
| Subject: | cvs: pecl /id3 id3.c php_id3.h | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-1716@lists.php.net to get a copy of this message | ||
luckec Mon Aug 23 18:10:23 2004 EDT
Modified files:
/pecl/id3 id3.c php_id3.h
Log:
removed dispensable return-value in _php_id3v1_get_tag
http://cvs.php.net/diff.php/pecl/id3/id3.c?r1=1.7&r2=1.8&ty=u
Index: pecl/id3/id3.c
diff -u pecl/id3/id3.c:1.7 pecl/id3/id3.c:1.8
--- pecl/id3/id3.c:1.7 Mon Aug 23 18:04:36 2004
+++ pecl/id3/id3.c Mon Aug 23 18:10:22 2004
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: id3.c,v 1.7 2004/08/23 22:04:36 luckec Exp $ */
+/* $Id: id3.c,v 1.8 2004/08/23 22:10:22 luckec Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -163,7 +163,7 @@
array_init(return_value);
- return_value = _php_id3v1_get_tag(stream, return_value);
+ _php_id3v1_get_tag(stream, return_value);
if (opened == 1) {
php_stream_close(stream);
@@ -174,7 +174,7 @@
/* {{{ proto zval* _php_id3v1_get_tag(php_stream *stream , zval* return_value TSRMLS_DC)
Set an array containg all information from the id3v1 tag */
-zval* _php_id3v1_get_tag(php_stream *stream , zval* return_value TSRMLS_DC)
+void _php_id3v1_get_tag(php_stream *stream , zval* return_value TSRMLS_DC)
{
unsigned char genre;
unsigned int bytes_read;
@@ -245,8 +245,6 @@
/* genre */
php_stream_read(stream, &genre, 1);
add_assoc_long(return_value, "genre", (long)genre);
-
- return return_value;
}
/* }}} */
http://cvs.php.net/diff.php/pecl/id3/php_id3.h?r1=1.3&r2=1.4&ty=u
Index: pecl/id3/php_id3.h
diff -u pecl/id3/php_id3.h:1.3 pecl/id3/php_id3.h:1.4
--- pecl/id3/php_id3.h:1.3 Mon Aug 23 18:01:20 2004
+++ pecl/id3/php_id3.h Mon Aug 23 18:10:23 2004
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_id3.h,v 1.3 2004/08/23 22:01:20 luckec Exp $ */
+/* $Id: php_id3.h,v 1.4 2004/08/23 22:10:23 luckec Exp $ */
#ifndef PHP_ID3_H
#define PHP_ID3_H
@@ -61,7 +61,7 @@
struct id3v2HdrFlags _php_id3v2_get_hdrFlags(php_stream *stream TSRMLS_DC);
int _php_id3v2_get_tagLength(php_stream *stream TSRMLS_DC);
int _php_bigEndian_to_Int(char* byteword, int bytewordlen, int synchsafe);
-zval* _php_id3v1_get_tag(php_stream *stream , zval* retval TSRMLS_DC);
+void _php_id3v1_get_tag(php_stream *stream , zval* retval TSRMLS_DC);
static int _php_id3_get_version(php_stream *stream TSRMLS_DC);
static int _php_id3_write_padded(php_stream *stream, zval **data, int length TSRMLS_DC);