View | Details | Raw Unified
Collapse All | Expand All

(-) sysfsutils-1.2.0/lib/sysfs_dir.c.original (-1 / +2 lines)
Line     Link Here 
               const char *new_value, size_t len)
               const char *new_value, size_t len)
 Lines 194-200    Link Here 
			dprintf("Error reading attribute\n");
			dprintf("Error reading attribute\n");
			return -1;
			return -1;
		}
		}
		if ((strncmp(sysattr->value, new_value, sysattr->len)) == 0) {
		if (((strncmp(sysattr->value, new_value, sysattr->len)) == 0)&&
		    (len == sysattr->len)) {
			dprintf("Attr %s already has the requested value %s\n",
			dprintf("Attr %s already has the requested value %s\n",
					sysattr->name, new_value);
					sysattr->name, new_value);
			return 0;	
			return 0;