diff options
author | Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com> | 2012-11-27 17:03:40 +0200 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2012-11-27 11:13:36 -0500 |
commit | 00639de12050c8755965a569de4f6df9dc36171f (patch) | |
tree | dcd080bbfe5c027e84371473f6d4f820c26b75f4 | |
parent | d7a63fdbfb8fcfcf4b2a81bc4773958ebd785d15 (diff) |
scanner: Fix wrong restriction on since field
The scanner would not allow two consecutive requests on an interface to
have the same since number, so if a new version of an interface added
two new request the version number would have to be increased by two.
-rw-r--r-- | src/scanner.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scanner.c b/src/scanner.c index 5793c20..6d2eddd 100644 --- a/src/scanner.c +++ b/src/scanner.c @@ -356,7 +356,7 @@ start_element(void *data, const char *element_name, const char **atts) version = strtol(since, &end, 0); if (errno == EINVAL || end == since || *end != '\0') fail(ctx, "invalid integer\n"); - if (version <= ctx->interface->since) + if (version < ctx->interface->since) fail(ctx, "since version not increasing\n"); ctx->interface->since = version; } |