From d798abcb91f095927f07776bca1ba308c600c3f6 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Sun, 26 Jun 2011 16:50:28 +0000 Subject: [PATCH] Provide a default for SNMP_GET_SYSUPTIME() based on sys_now() --- src/core/snmp/mib2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/snmp/mib2.c b/src/core/snmp/mib2.c index 29decd30..4775ba99 100644 --- a/src/core/snmp/mib2.c +++ b/src/core/snmp/mib2.c @@ -73,7 +73,7 @@ #endif #ifndef SNMP_GET_SYSUPTIME -#define SNMP_GET_SYSUPTIME(sysuptime) +#define SNMP_GET_SYSUPTIME(sysuptime) (sysuptime = (sys_now() / 10)) #endif static void system_get_object_def(u8_t ident_len, s32_t *ident, struct obj_def *od);