summaryrefslogtreecommitdiff
path: root/components/libc
diff options
context:
space:
mode:
authorshuobatian <[email protected]>2021-04-05 15:08:53 +0800
committershuobatian <[email protected]>2021-04-05 15:08:53 +0800
commita8fb6109e0ffc4e0cbdb6c3790702f180ff5ffe7 (patch)
treeac0f6186c6132634b0ca77794bf812f285159b8a /components/libc
parent9f4ce7ee6faef172b9b8ecd093c2f9177d892865 (diff)
fix unused device frame error
Diffstat (limited to 'components/libc')
-rw-r--r--components/libc/compilers/common/time.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/libc/compilers/common/time.c b/components/libc/compilers/common/time.c
index 99dab71eb4..05216d830b 100644
--- a/components/libc/compilers/common/time.c
+++ b/components/libc/compilers/common/time.c
@@ -227,8 +227,8 @@ int gettimeofday(struct timeval *tp, void *ignore)
tp->tv_usec = 0;
}
#else
- tv->tv_sec = 0;
- tv->tv_usec = 0;
+ tp->tv_sec = 0;
+ tp->tv_usec = 0;
#endif
return time;