Code

mk-livestatus backend: Use '::' to separate instance in callback names.
authorSebastian Harl <sh@tokkee.org>
Sun, 10 Mar 2013 22:05:11 +0000 (23:05 +0100)
committerSebastian Harl <sh@tokkee.org>
Sun, 10 Mar 2013 22:05:11 +0000 (23:05 +0100)
This is just to be consistent with the other plugins.

src/backend/mk-livestatus.c

index 87c44deb7b920d56cc3c82542d17b4140f4899aa..adc9cee9188754a913f4244d3db16a23e9d3d27b 100644 (file)
@@ -270,7 +270,7 @@ sdb_livestatus_config_instance(oconfig_item_t *ci)
                return -1;
        }
 
-       snprintf(cb_name, sizeof(cb_name), "mk-livestatus-%s", name);
+       snprintf(cb_name, sizeof(cb_name), "mk-livestatus::%s", name);
        cb_name[sizeof(cb_name) - 1] = '\0';
 
        client = sdb_unixsock_client_create(socket_path);