Bugfix/c89 compile fixes (#327)
* Fix code to be able to compile with older C89 ANSI compilers * Convert C++ comments to C89 comments. * default to std=gnu89 * Fix to enable CMake 3.1 to build on Centos7 Co-authored-by: Steve Karg <skarg@users.sourceforge.net>
This commit is contained in:
+3
-3
@@ -113,7 +113,7 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
}
|
||||
|
||||
// blocking dequeue here
|
||||
/* blocking dequeue here */
|
||||
bacmsg = recv_from_msgbox(head->main_id, &msg_storage, 0);
|
||||
if (bacmsg) {
|
||||
switch (bacmsg->type) {
|
||||
@@ -127,7 +127,7 @@ int main(int argc, char *argv[])
|
||||
break;
|
||||
}
|
||||
|
||||
// print_msg(bacmsg);
|
||||
/* print_msg(bacmsg); */
|
||||
|
||||
if (is_network_msg(bacmsg)) {
|
||||
buff_len =
|
||||
@@ -153,7 +153,7 @@ int main(int argc, char *argv[])
|
||||
msg_storage.type = DATA;
|
||||
msg_storage.data = msg_data;
|
||||
|
||||
// print_msg(bacmsg);
|
||||
/* print_msg(bacmsg); */
|
||||
|
||||
if (is_network_msg(bacmsg)) {
|
||||
msg_data->ref_count = 1;
|
||||
|
||||
Reference in New Issue
Block a user