[libgudev/wip/hadess/fix-sysfs-attr: 2/4] gudev: Update g_udev_device_get_sysfs_attr_as_boolean() doc




commit ca88a4be7e6844e39b3181caa6fc93455183cdc9
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Mar 16 11:59:59 2021 +0100

    gudev: Update g_udev_device_get_sysfs_attr_as_boolean() doc
    
    The behaviour was changed in commit e186dac0, but the documentation
    wasn't updated.

 gudev/gudevdevice.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gudev/gudevdevice.c b/gudev/gudevdevice.c
index 9135a38..b38bd4d 100644
--- a/gudev/gudevdevice.c
+++ b/gudev/gudevdevice.c
@@ -914,7 +914,7 @@ truncate_at_linefeed (const char *value)
  *
  * Look up the sysfs attribute with @name on @device and convert it to an
  * boolean. This is done by doing a case-insensitive string comparison
- * on the string value against "1" and "true". The retrieved value is
+ * on the string value against "1", "true", "Y" and "y". The retrieved value is
  * cached in the device. Repeated calls will return the same value and
  * not open the attribute again, unless updated through one of the
  * "uncached" functions.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]