cvs: pecl /usblib php_usblib.c
| From: | Andrey Hristov | Date: | Tue, 07 Jun 2005 21:23:48 +0000 |
| Subject: | cvs: pecl /usblib php_usblib.c | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-3241@lists.php.net to get a copy of this message | ||
andrey Tue Jun 7 17:23:48 2005 EDT
Modified files:
/pecl/usblib php_usblib.c
Log:
fix indentation
http://cvs.php.net/diff.php/pecl/usblib/php_usblib.c?r1=1.1&r2=1.2&ty=u
Index: pecl/usblib/php_usblib.c
diff -u pecl/usblib/php_usblib.c:1.1 pecl/usblib/php_usblib.c:1.2
--- pecl/usblib/php_usblib.c:1.1 Tue Jun 7 17:19:59 2005
+++ pecl/usblib/php_usblib.c Tue Jun 7 17:23:47 2005
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_usblib.c,v 1.1 2005/06/07 21:19:59 andrey Exp $ */
+/* $Id: php_usblib.c,v 1.2 2005/06/07 21:23:47 andrey Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -230,7 +230,7 @@
PHP_FUNCTION(usblib_get_device_info)
{
struct usb_device *dev;
- struct usb_dev_handle *udev;
+ struct usb_dev_handle *udev;
zval *dev_element, *tmp, *dev_descriptor, *dev_config, *dev_configs;
zval *dev_ifaces, *dev_iface, *dev_endpoints, *dev_endpoint;
zval *dev_alt_settings, *dev_alt_setting;
@@ -251,7 +251,7 @@
if ((udev = usb_open(dev))) {
char desc[256];
- if (dev->descriptor.iManufacturer
+ if (dev->descriptor.iManufacturer
&&
usb_get_string_simple(udev, dev->descriptor.iManufacturer, desc, sizeof(desc)))
{
@@ -260,7 +260,7 @@
add_assoc_stringl(return_value, "vendor", "", 0, 1);
}
- if (dev->descriptor.iProduct
+ if (dev->descriptor.iProduct
&&
usb_get_string_simple(udev, dev->descriptor.iProduct, desc, sizeof(desc)))
{
@@ -301,7 +301,7 @@
MAKE_STD_ZVAL(dev_configs);
array_init(dev_configs);
- for (i = 0; i < dev->descriptor.bNumConfigurations; ++i) {
+ for (i = 0; i < dev->descriptor.bNumConfigurations; ++i) {
struct usb_config_descriptor *cfg = &dev->config[i];
MAKE_STD_ZVAL(dev_config);
array_init(dev_config);