BugID:17342512:fix white scan issue
@@ -491,7 +491,7 @@ static unsigned long long uptime_sec(void)
int set_scheduler_prop(sample_context_t *sample)
{
- int id = 0;
+ int res = 0, id = 0;
char *timer = NULL;
int enable = 0;
@@ -499,9 +499,20 @@ int set_scheduler_prop(sample_context_t *sample)
id = 0;
timer = "10 11 * * * 1 2 3 4 5";
enable = 1;
- linkkit_set_value(linkkit_method_set_property_value, sample->thing, "LocalTimer[0].ID", &id, NULL);
- linkkit_set_value(linkkit_method_set_property_value, sample->thing, "LocalTimer[0].Timer", timer, NULL);
- linkkit_set_value(linkkit_method_set_property_value, sample->thing, "LocalTimer[0].Enable", &enable, NULL);
+ res = linkkit_set_value(linkkit_method_set_property_value, sample->thing, "LocalTimer[0].ID", &id, NULL);
+ if (res < 0) {
+ printf("linkkit_set_value error: %d\n", res);
+ }
+
+ res = linkkit_set_value(linkkit_method_set_property_value, sample->thing, "LocalTimer[0].Timer", timer, NULL);
+ if (res < 0) {
+ printf("linkkit_set_value error: %d\n", res);
+ }
+
+ res = linkkit_set_value(linkkit_method_set_property_value, sample->thing, "LocalTimer[0].Enable", &enable, NULL);
+ if (res < 0) {
+ printf("linkkit_set_value error: %d\n", res);
+ }
return 0;
}
