OSSP CVS Repository

ossp - Difference in ossp-pkg/var/var_test.c versions 1.14 and 1.15
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/var/var_test.c 1.14 -> 1.15

--- var_test.c   2001/11/20 15:46:35     1.14
+++ var_test.c   2001/12/03 10:51:27     1.15
@@ -9,13 +9,16 @@
 };
 
 static int var_lookup(void *context,
-    const char *varname, size_t name_len,
+    const char *varname, size_t name_len, int index,
     const char **data, size_t *data_len,
     size_t *buffer_size)
 {
     const struct variable*  vars = context;
     size_t i;
 
+    if (index != 0)
+        return VAR_ERR_ARRAY_LOOKUPS_ARE_UNSUPPORTED;
+
     for (i = 0; vars[i].name; ++i) {
         if (strncmp(varname, vars[i].name, name_len) == 0) {
             *data = vars[i].data;

CVSTrac 2.0.1