]> rtime.felk.cvut.cz Git - coffee/mt-apps.git/blobdiff - mt_server.c
gpio started
[coffee/mt-apps.git] / mt_server.c
index 51b5b60c0374a0b894e8c55dd4d2015fdc29ec48..7ef9109ecc15b68dd974f8e3c1347416dda4fe8b 100644 (file)
@@ -184,7 +184,7 @@ void mt_server_deinit(mt_server_t *self) //TODO wtf
     lws_context_destroy(self->context);
 }
 
-#ifdef IS_MAIN
+#ifndef NO_MAIN
 int main(int argc, const char **argv)
 {
     struct ev_loop *loop = EV_DEFAULT;
@@ -192,7 +192,7 @@ int main(int argc, const char **argv)
 
     set_signal_exit(loop);
 
-    if (mt_server_init(&server, loop, STDIN_FILENO) == -1) {
+    if (mt_server_init(&server, loop, STDIN_FILENO) != 0) {
         return -1;
     }