Explorar o código

Unify type of in for loops

Aaron Marcher %!s(int64=7) %!d(string=hai) anos
pai
achega
7ab183c97f
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      components/battery.c

+ 2 - 1
components/battery.c

@@ -77,7 +77,8 @@
 	const char *
 	const char *
 	battery_state(const char *bat)
 	battery_state(const char *bat)
 	{
 	{
-		int fd, i;
+		int fd;
+		size_t i;
 		struct apm_power_info apm_info;
 		struct apm_power_info apm_info;
 		struct {
 		struct {
 			unsigned int state;
 			unsigned int state;