diff --git a/src/frontend/scanner.l b/src/frontend/scanner.l
index 65ec9edceb79ff73769e03e37046123971d9b73f..ab8b80daf560459822714f473ebc7a5adc76f21f 100644 (file)
--- a/src/frontend/scanner.l
+++ b/src/frontend/scanner.l
{ "FILTER", FILTER },
{ "IN", IN },
{ "IS", IS },
{ "FILTER", FILTER },
{ "IN", IN },
{ "IS", IS },
+ { "LAST", LAST },
{ "LIST", LIST },
{ "LOOKUP", LOOKUP },
{ "MATCHING", MATCHING },
{ "LIST", LIST },
{ "LOOKUP", LOOKUP },
{ "MATCHING", MATCHING },
{ "NULL", NULL_T },
{ "OR", OR },
{ "START", START },
{ "NULL", NULL_T },
{ "OR", OR },
{ "START", START },
+ { "STORE", STORE },
{ "TIMESERIES", TIMESERIES },
{ "TIMESERIES", TIMESERIES },
+ { "UPDATE", UPDATE },
/* object types */
{ "host", HOST_T },
/* object types */
{ "host", HOST_T },
{ "age", AGE_T },
{ "interval", INTERVAL_T },
{ "backend", BACKEND_T },
{ "age", AGE_T },
{ "interval", INTERVAL_T },
{ "backend", BACKEND_T },
+ { "value", VALUE_T },
};
void
};
void
assert(tmp);
tmp = strchr(tmp + 1, ':');
if (! tmp)
assert(tmp);
tmp = strchr(tmp + 1, ':');
if (! tmp)
- strncat(time, ":00", sizeof(time));
+ strncat(time, ":00", sizeof(time) - strlen(time) - 1);
if (! strptime(time, "%H:%M:%S", &tm)) {
char errmsg[1024];
if (! strptime(time, "%H:%M:%S", &tm)) {
char errmsg[1024];