Skip to content

Commit e66131c

Browse files
committed
Fixed warnings on src/storage.c : three function were returning 'const int', which can't be.
1 parent e8987b3 commit e66131c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ void jshKickSoftWatchDog() {
2121

2222
// XXX: do we need this, for our app?
2323
uint64_t ejs_get_microseconds() {
24-
return (uint64_t)0;
24+
return (uint64_t) (eadk_timing_millis() * 1000);
2525
}
2626

2727
// TODO: do we need this, for our app?

src/storage.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ uint32_t extapp_address() {
231231
return *(uint32_t *)((*extapp_userlandAddress()) + 0xC);
232232
}
233233

234-
const uint32_t extapp_size() {
234+
uint32_t extapp_size() {
235235
return *(uint32_t *)((*extapp_userlandAddress()) + 0x10);
236236
}
237237

@@ -262,7 +262,7 @@ const uint32_t * extapp_nextFree() {
262262
return (uint32_t *)endAddress;
263263
}
264264

265-
const uint32_t extapp_used() {
265+
uint32_t extapp_used() {
266266
return (uint32_t)extapp_nextFree() - extapp_address();
267267
}
268268

@@ -271,7 +271,7 @@ bool extapp_isValid(const uint32_t * address) {
271271
return *address == reverse32(0xBADD0BEE);
272272
}
273273

274-
const uint8_t extapp_calculatorModel() {
274+
uint8_t extapp_calculatorModel() {
275275
// To guess the storage size without reading forbidden addresses, we try to
276276
// get the storage address from the userland header
277277

0 commit comments

Comments
 (0)