mirror of
https://github.com/nasa/trick.git
synced 2025-06-23 01:08:52 +00:00
Explicitly specify void arg for C functions that take no arguments. (#670)
* Clock empty args to void * command_line func empty args to void * DataRecord func empty args to void * debug_pause func empty args to void * echojobs func empty args to void * ExternalApplication func empty args to void * FrameLog func empty args to void * MasterSlave func empty args to void * MonteCarlo func empty args to void * outdllist func proto empty args to void * sie func empty args to void * SimTime func empty args to void * UnitTest func empty args to void * var_server func empty args to void * wcs func empty args to void
This commit is contained in:
@ -392,7 +392,7 @@ Trick::VariableServer * var_server_get_var_server() {
|
||||
* @copydoc Trick::VariableServer::get_hostname
|
||||
* C wrapper Trick::VariableServer::get_hostname
|
||||
*/
|
||||
extern "C" const char * var_server_get_hostname() {
|
||||
extern "C" const char * var_server_get_hostname(void) {
|
||||
return(the_vs->get_hostname()) ;
|
||||
}
|
||||
|
||||
@ -401,7 +401,7 @@ extern "C" const char * var_server_get_hostname() {
|
||||
* @copydoc Trick::VariableServer::get_port
|
||||
* C wrapper Trick::VariableServer::get_port
|
||||
*/
|
||||
extern "C" unsigned short var_server_get_port() {
|
||||
extern "C" unsigned short var_server_get_port(void) {
|
||||
return(the_vs->get_listen_thread().get_port()) ;
|
||||
}
|
||||
|
||||
@ -428,7 +428,7 @@ extern "C" void var_server_set_source_address(const char * source_address) {
|
||||
* @copydoc Trick::VariableServer::get_user_tag
|
||||
* C wrapper Trick::VariableServer::get_user_tag
|
||||
*/
|
||||
extern "C" const char * var_server_get_user_tag() {
|
||||
extern "C" const char * var_server_get_user_tag(void) {
|
||||
return(the_vs->get_listen_thread().get_user_tag().c_str()) ;
|
||||
}
|
||||
|
||||
@ -446,7 +446,7 @@ extern "C" void var_server_set_user_tag(const char * in_tag) {
|
||||
* @copydoc Trick::VariableServer::get_enabled
|
||||
* C wrapper Trick::VariableServer::get_enabled
|
||||
*/
|
||||
extern "C" int var_server_get_enabled() {
|
||||
extern "C" int var_server_get_enabled(void) {
|
||||
return(the_vs->get_enabled()) ;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user