Felipe Sateler wrote:

> @@ -84,6 +85,13 @@
> fgets(name, 4096, file);
> ptr->connected = strtoull(name, NULL, 10);
> fclose(file);
> +                       sprintf(fullpath, "%s/power/autosuspend", path);
> +                       file = fopen(fullpath, "r");
> +                       if (!file)
> +                               return;
> +                       fgets(name, 4096, file);
> +                       ptr->autosuspend = strtoull(name, NULL, 10);
                                             ^^^^^^^^
Heh, this should be strtol.

> +                       fclose(file);



-- 

  Felipe Sateler

_______________________________________________
Power mailing list
[email protected]
http://www.bughost.org/mailman/listinfo/power

Reply via email to