libmapper: format code using c++ clang-format
Remove libmapper/.clang-fromat and format code using c++ clang-format
Signed-off-by: George Liu <liuxiwei@ieisystem.com>
Change-Id: I62781743b03fa1e806f51f4844c93aaf4cdfac4f
diff --git a/libmapper/app.c b/libmapper/app.c
index b8639f8..485a507 100644
--- a/libmapper/app.c
+++ b/libmapper/app.c
@@ -13,6 +13,8 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+#include "mapper.h"
+
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
@@ -20,8 +22,6 @@
#include <systemd/sd-event.h>
#include <unistd.h>
-#include "mapper.h"
-
static void quit(int r, void* loop)
{
sd_event_exit((sd_event*)loop, r);
@@ -253,11 +253,19 @@
}
if (!strcmp(argv[1], "wait"))
+ {
wait_main(argc, argv);
+ }
+
if (!strcmp(argv[1], "subtree-remove"))
+ {
subtree_main(argc, argv);
+ }
+
if (!strcmp(argv[1], "get-service"))
+ {
get_service_main(argc, argv);
+ }
fprintf(stderr, usage, argv[0]);
exit(EXIT_FAILURE);