Skip to content

Commit 1694339

Browse files
committed
Properly define LSMethod array & null-terminate the list
1 parent 01f45a4 commit 1694339

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

service/src/main.c

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -220,11 +220,12 @@ bool service_method_terminate(LSHandle* sh, LSMessage* msg, void* data __attribu
220220
}
221221

222222
LSMethod methods[] = {
223-
{"start", service_method_start},
224-
{"stop", service_method_stop},
225-
{"status", service_method_status},
226-
{"version", service_method_version},
227-
{"terminate", service_method_terminate},
223+
{"start", service_method_start, LUNA_METHOD_FLAGS_NONE },
224+
{"stop", service_method_stop, LUNA_METHOD_FLAGS_NONE },
225+
{"status", service_method_status, LUNA_METHOD_FLAGS_NONE },
226+
{"version", service_method_version, LUNA_METHOD_FLAGS_NONE },
227+
{"terminate", service_method_terminate, LUNA_METHOD_FLAGS_NONE },
228+
{ 0, 0, 0 }
228229
};
229230

230231
int main()

0 commit comments

Comments
 (0)