presence: increased the array size for rpc cleanup doc
authorDaniel-Constantin Mierla <miconda@gmail.com>
Tue, 21 Apr 2020 07:15:48 +0000 (09:15 +0200)
committerDaniel-Constantin Mierla <miconda@gmail.com>
Tue, 21 Apr 2020 07:15:48 +0000 (09:15 +0200)
- reformatted the static structure for coherence

src/modules/presence/presence.c

index dd9b43f..c0e1912 100644 (file)
@@ -1780,7 +1780,9 @@ void rpc_presence_refresh_watchers(rpc_t *rpc, void *ctx)
 }
 
 static const char *rpc_presence_refresh_watchers_doc[2] = {
-               "Trigger refresh of watchers", 0};
+       "Trigger refresh of watchers",
+       0
+};
 
 /*! \brief
  *  rpc cmd: presence.updateWatchers
@@ -1822,7 +1824,9 @@ void rpc_presence_update_watchers(rpc_t *rpc, void *ctx)
 }
 
 static const char *rpc_presence_update_watchers_doc[2] = {
-               "Trigger update of watchers", 0};
+       "Trigger update of watchers",
+       0
+};
 
 
 void rpc_presence_cleanup(rpc_t *rpc, void *c)
@@ -1837,18 +1841,21 @@ void rpc_presence_cleanup(rpc_t *rpc, void *c)
        return;
 }
 
-static const char *rpc_presence_cleanup_doc[2] = {
-               "Manually triggers the cleanup functions for the active_watchers, "
-               "presentity, and watchers tables.",
-               0};
+static const char *rpc_presence_cleanup_doc[3] = {
+       "Manually triggers the cleanup functions for the active_watchers, "
+       "presentity, and watchers tables.",
+       0
+};
+
 
 rpc_export_t presence_rpc[] = {
-               {"presence.cleanup", rpc_presence_cleanup, rpc_presence_cleanup_doc, 0},
-               {"presence.refreshWatchers", rpc_presence_refresh_watchers,
-                               rpc_presence_refresh_watchers_doc, 0},
-               {"presence.updateWatchers", rpc_presence_update_watchers,
-                               rpc_presence_update_watchers_doc, 0},
-               {0, 0, 0, 0}};
+       {"presence.cleanup", rpc_presence_cleanup, rpc_presence_cleanup_doc, 0},
+       {"presence.refreshWatchers", rpc_presence_refresh_watchers,
+                       rpc_presence_refresh_watchers_doc, 0},
+       {"presence.updateWatchers", rpc_presence_update_watchers,
+                       rpc_presence_update_watchers_doc, 0},
+       {0, 0, 0, 0}
+};
 
 static int presence_init_rpc(void)
 {