Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 01876dd2 authored by Hamad Kadmany's avatar Hamad Kadmany Committed by Alexei Avshalom Lazar
Browse files

fst-manager: static code analysis fixes

Change-Id: I2cf1996ab2b27e00aaede6d8b0f5937f92e70279
parent ab8a0ee5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -53,7 +53,7 @@ void os_sleep(os_time_t sec, os_time_t usec)
int os_get_time(struct os_time *t)
{
	int res;
	struct timeval tv;
	struct timeval tv = {0};
	res = gettimeofday(&tv, NULL);
	t->sec = tv.tv_sec;
	t->usec = tv.tv_usec;
+1 −1
Original line number Diff line number Diff line
@@ -256,7 +256,7 @@ int fst_ini_config_get_group_slave_ifaces(struct fst_ini_config *h,
			/* Skip the master interface */
			cnt--;
			if (i < cnt)
				memmove(&(*ifaces)[i], &(*ifaces)[i+1],
				os_memmove(&(*ifaces)[i], &(*ifaces)[i+1],
					(cnt-i) * sizeof(struct fst_iface_info));
			return cnt;
		}