diff options
author | Knut Petter Svendsen <knut@altuma.no> | 2022-09-13 22:57:39 +0200 |
---|---|---|
committer | Knut Petter Svendsen <knut@altuma.no> | 2022-09-13 22:57:39 +0200 |
commit | 3da59eac098c1ef9d2c98f2079185ff35c3b6105 (patch) | |
tree | 379c29e09bf55597fe6740cd163478cd1204a181 /ACE/bin | |
parent | fe03724176dcfd20e0f9a6e493198469242be6b6 (diff) | |
download | ATCD-3da59eac098c1ef9d2c98f2079185ff35c3b6105.tar.gz |
Remove obsolescent (void) in functions with no parameters
Diffstat (limited to 'ACE/bin')
-rw-r--r-- | ACE/bin/LabVIEW_RT/labview_test_controller/labview_test_controller.cpp | 26 | ||||
-rw-r--r-- | ACE/bin/LabVIEW_RT/labview_test_controller/test.cpp | 2 |
2 files changed, 14 insertions, 14 deletions
diff --git a/ACE/bin/LabVIEW_RT/labview_test_controller/labview_test_controller.cpp b/ACE/bin/LabVIEW_RT/labview_test_controller/labview_test_controller.cpp index 93f6c356cfb..46ac38bc5d6 100644 --- a/ACE/bin/LabVIEW_RT/labview_test_controller/labview_test_controller.cpp +++ b/ACE/bin/LabVIEW_RT/labview_test_controller/labview_test_controller.cpp @@ -73,14 +73,14 @@ public: ~Test (); HANDLE handle (void) { return this->thr_handle_; } - int run (void); + int run (); const char *start (const char *name); bool status (int *exit_status); - int wait (void); - void kill (void); + int wait (); + void kill (); // Clean up remnants of a test run. - void cleanup (void); + void cleanup (); private: HMODULE dll_handle_; @@ -102,13 +102,13 @@ public: // Run the Peer's session; intended to be called from a new thread devoted // to this peer's session. - int svc (void); + int svc (); private: Peer () {}; // Process command input from socket. - int command (void); + int command (); // Send a reply string to the peer. int reply (const char *msg); @@ -124,7 +124,7 @@ private: // socket handle over which this object receives control commands from the // host test driver. int -Peer::svc (void) +Peer::svc () { // Read commands until EOF (peer closed) or protocol error while (0 == this->command ()) @@ -135,7 +135,7 @@ Peer::svc (void) } int -Peer::command (void) +Peer::command () { // The protocol exchanges with the peer are execpted to be lock-step // request-reply command lines, so we can make assumptions about a complete @@ -328,7 +328,7 @@ Test::~Test () } int -Test::run (void) +Test::run () { this->running_ = true; try @@ -431,7 +431,7 @@ Test::status (int *exit_status) } int -Test::wait (void) +Test::wait () { WaitForSingleObject (this->thr_handle_, INFINITE); if (!this->running_) @@ -440,7 +440,7 @@ Test::wait (void) } void -Test::kill (void) +Test::kill () { TerminateThread (this->thr_handle_, -1); this->cleanup (); @@ -450,7 +450,7 @@ Test::kill (void) // Clean up remnants of a test run. void -Test::cleanup (void) +Test::cleanup () { if (this->dll_handle_ != NULL) { @@ -607,7 +607,7 @@ format_errmsg (unsigned int errcode, const char *prefix) #define TEST_RUNNER_API __declspec(dllimport) #endif -__declspec(dllexport) int test_entry(void) +__declspec(dllexport) int test_entry() { return 0; } diff --git a/ACE/bin/LabVIEW_RT/labview_test_controller/test.cpp b/ACE/bin/LabVIEW_RT/labview_test_controller/test.cpp index 1caabf2b2fd..49c8923c4c0 100644 --- a/ACE/bin/LabVIEW_RT/labview_test_controller/test.cpp +++ b/ACE/bin/LabVIEW_RT/labview_test_controller/test.cpp @@ -1,5 +1,5 @@ #include <stdio.h> -__declspec(dllimport) int test_entry(void); +__declspec(dllimport) int test_entry(); // This is plain Windows code, not ACE. Therefore we disable // the check for ACE_OS |