mirror of https://github.com/eclipse/paho.mqtt.c
Ensure an empty parameter list using void
According to ISO/IEC 9899:2011, section 6.7.6.3 (Function declarators including prototypes): "The special case of an unnamed parameter of type void as the only item in the list specifies that the function has no parameters." Signed-off-by: Guilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
This commit is contained in:
parent
a98b66537a
commit
6e88fdffbc
|
|
@ -353,7 +353,7 @@ void HeapScan(int log_level)
|
|||
/**
|
||||
* Heap initialization.
|
||||
*/
|
||||
int Heap_initialize()
|
||||
int Heap_initialize(void)
|
||||
{
|
||||
TreeInitializeNoMalloc(&heap, ptrCompare);
|
||||
heap.heap_tracking = 0; /* no recursive heap tracking! */
|
||||
|
|
@ -364,7 +364,7 @@ int Heap_initialize()
|
|||
/**
|
||||
* Heap termination.
|
||||
*/
|
||||
void Heap_terminate()
|
||||
void Heap_terminate(void)
|
||||
{
|
||||
Log(TRACE_MIN, -1, "Maximum heap use was %d bytes", state.max_size);
|
||||
if (state.current_size > 20) /* One log list is freed after this function is called */
|
||||
|
|
@ -379,7 +379,7 @@ void Heap_terminate()
|
|||
* Access to heap state
|
||||
* @return pointer to the heap state structure
|
||||
*/
|
||||
heap_info* Heap_get_info()
|
||||
heap_info* Heap_get_info(void)
|
||||
{
|
||||
return &state;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -210,7 +210,7 @@ void Log_setTraceLevel(enum LOG_LEVELS level)
|
|||
}
|
||||
|
||||
|
||||
void Log_terminate()
|
||||
void Log_terminate(void)
|
||||
{
|
||||
free(trace_queue);
|
||||
trace_queue = NULL;
|
||||
|
|
@ -232,7 +232,7 @@ void Log_terminate()
|
|||
}
|
||||
|
||||
|
||||
static traceEntry* Log_pretrace()
|
||||
static traceEntry* Log_pretrace(void)
|
||||
{
|
||||
traceEntry *cur_entry = NULL;
|
||||
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ typedef struct
|
|||
} Log_nameValue;
|
||||
|
||||
int Log_initialize(Log_nameValue*);
|
||||
void Log_terminate();
|
||||
void Log_terminate(void);
|
||||
|
||||
void Log(int, int, char *, ...);
|
||||
void Log_stackTrace(int, int, int, int, const char*, int, int*);
|
||||
|
|
|
|||
|
|
@ -143,7 +143,7 @@ static mutex_type mqttcommand_mutex = &mqttcommand_mutex_store;
|
|||
static cond_type_struct send_cond_store = { PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER };
|
||||
static cond_type send_cond = &send_cond_store;
|
||||
|
||||
void MQTTAsync_init()
|
||||
void MQTTAsync_init(void)
|
||||
{
|
||||
pthread_mutexattr_t attr;
|
||||
int rc;
|
||||
|
|
@ -173,7 +173,7 @@ static List* commands = NULL;
|
|||
|
||||
MQTTPacket* MQTTAsync_cycle(int* sock, unsigned long timeout, int* rc);
|
||||
int MQTTAsync_cleanSession(Clients* client);
|
||||
void MQTTAsync_stop();
|
||||
void MQTTAsync_stop(void);
|
||||
int MQTTAsync_disconnect_internal(MQTTAsync handle, int timeout);
|
||||
void MQTTAsync_closeOnly(Clients* client);
|
||||
void MQTTAsync_closeSession(Clients* client);
|
||||
|
|
@ -932,7 +932,7 @@ void MQTTAsync_checkDisconnect(MQTTAsync handle, MQTTAsync_command* command)
|
|||
* Cleaning up means removing any publication data that was stored because the write did
|
||||
* not originally complete.
|
||||
*/
|
||||
void MQTTProtocol_checkPendingWrites()
|
||||
void MQTTProtocol_checkPendingWrites(void)
|
||||
{
|
||||
FUNC_ENTRY;
|
||||
if (state.pending_writes.count > 0)
|
||||
|
|
@ -1056,7 +1056,7 @@ void MQTTAsync_writeComplete(int socket)
|
|||
}
|
||||
|
||||
|
||||
int MQTTAsync_processCommand()
|
||||
int MQTTAsync_processCommand(void)
|
||||
{
|
||||
int rc = 0;
|
||||
MQTTAsync_queuedCommand* command = NULL;
|
||||
|
|
@ -1302,7 +1302,7 @@ exit:
|
|||
}
|
||||
|
||||
|
||||
void MQTTAsync_checkTimeouts()
|
||||
void MQTTAsync_checkTimeouts(void)
|
||||
{
|
||||
ListElement* current = NULL;
|
||||
static time_t last = 0L;
|
||||
|
|
@ -1888,7 +1888,7 @@ thread_return_type WINAPI MQTTAsync_receiveThread(void* n)
|
|||
}
|
||||
|
||||
|
||||
void MQTTAsync_stop()
|
||||
void MQTTAsync_stop(void)
|
||||
{
|
||||
int rc = 0;
|
||||
|
||||
|
|
@ -3129,7 +3129,7 @@ void MQTTAsync_setTraceCallback(MQTTAsync_traceCallback* callback)
|
|||
}
|
||||
|
||||
|
||||
MQTTAsync_nameValue* MQTTAsync_getVersionInfo()
|
||||
MQTTAsync_nameValue* MQTTAsync_getVersionInfo(void)
|
||||
{
|
||||
#define MAX_INFO_STRINGS 8
|
||||
static MQTTAsync_nameValue libinfo[MAX_INFO_STRINGS + 1];
|
||||
|
|
|
|||
|
|
@ -1102,7 +1102,7 @@ typedef struct
|
|||
* MQTTASYNC_TRACE_MINIMUM
|
||||
* @return an array of strings describing the library. The last entry is a NULL pointer.
|
||||
*/
|
||||
DLLExport MQTTAsync_nameValue* MQTTAsync_getVersionInfo();
|
||||
DLLExport MQTTAsync_nameValue* MQTTAsync_getVersionInfo(void);
|
||||
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -131,7 +131,7 @@ static mutex_type unsubscribe_mutex = &unsubscribe_mutex_store;
|
|||
static pthread_mutex_t connect_mutex_store = PTHREAD_MUTEX_INITIALIZER;
|
||||
static mutex_type connect_mutex = &connect_mutex_store;
|
||||
|
||||
void MQTTClient_init()
|
||||
void MQTTClient_init(void)
|
||||
{
|
||||
pthread_mutexattr_t attr;
|
||||
int rc;
|
||||
|
|
@ -163,7 +163,7 @@ static thread_id_type run_id = 0;
|
|||
MQTTPacket* MQTTClient_waitfor(MQTTClient handle, int packet_type, int* rc, long timeout);
|
||||
MQTTPacket* MQTTClient_cycle(int* sock, unsigned long timeout, int* rc);
|
||||
int MQTTClient_cleanSession(Clients* client);
|
||||
void MQTTClient_stop();
|
||||
void MQTTClient_stop(void);
|
||||
int MQTTClient_disconnect_internal(MQTTClient handle, int timeout);
|
||||
int MQTTClient_disconnect1(MQTTClient handle, int timeout, int internal, int stop);
|
||||
void MQTTClient_writeComplete(int socket);
|
||||
|
|
@ -629,7 +629,7 @@ thread_return_type WINAPI MQTTClient_run(void* n)
|
|||
}
|
||||
|
||||
|
||||
void MQTTClient_stop()
|
||||
void MQTTClient_stop(void)
|
||||
{
|
||||
int rc = 0;
|
||||
|
||||
|
|
@ -1930,7 +1930,7 @@ exit:
|
|||
return rc;
|
||||
}
|
||||
|
||||
MQTTClient_nameValue* MQTTClient_getVersionInfo()
|
||||
MQTTClient_nameValue* MQTTClient_getVersionInfo(void)
|
||||
{
|
||||
#define MAX_INFO_STRINGS 8
|
||||
static MQTTClient_nameValue libinfo[MAX_INFO_STRINGS + 1];
|
||||
|
|
@ -1971,7 +1971,7 @@ MQTTClient_nameValue* MQTTClient_getVersionInfo()
|
|||
* Cleaning up means removing any publication data that was stored because the write did
|
||||
* not originally complete.
|
||||
*/
|
||||
void MQTTProtocol_checkPendingWrites()
|
||||
void MQTTProtocol_checkPendingWrites(void)
|
||||
{
|
||||
FUNC_ENTRY;
|
||||
if (state.pending_writes.count > 0)
|
||||
|
|
|
|||
|
|
@ -393,7 +393,7 @@ extern void SSLLocks_callback(int mode, int n, const char *file, int line)
|
|||
}
|
||||
}
|
||||
|
||||
int SSLSocket_initialize()
|
||||
int SSLSocket_initialize(void)
|
||||
{
|
||||
int rc = 0;
|
||||
/*int prc;*/
|
||||
|
|
@ -444,7 +444,7 @@ exit:
|
|||
return rc;
|
||||
}
|
||||
|
||||
void SSLSocket_terminate()
|
||||
void SSLSocket_terminate(void)
|
||||
{
|
||||
FUNC_ENTRY;
|
||||
EVP_cleanup();
|
||||
|
|
@ -806,7 +806,7 @@ void SSLSocket_addPendingRead(int sock)
|
|||
}
|
||||
|
||||
|
||||
int SSLSocket_getPendingRead()
|
||||
int SSLSocket_getPendingRead(void)
|
||||
{
|
||||
int sock = -1;
|
||||
|
||||
|
|
|
|||
|
|
@ -31,8 +31,8 @@
|
|||
|
||||
#define URI_SSL "ssl://"
|
||||
|
||||
int SSLSocket_initialize();
|
||||
void SSLSocket_terminate();
|
||||
int SSLSocket_initialize(void);
|
||||
void SSLSocket_terminate(void);
|
||||
int SSLSocket_setSocketForSSL(networkHandles* net, MQTTClient_SSLOptions* opts, char* hostname);
|
||||
int SSLSocket_getch(SSL* ssl, int socket, char* c);
|
||||
char *SSLSocket_getdata(SSL* ssl, int socket, size_t bytes, size_t* actual_len);
|
||||
|
|
@ -41,7 +41,7 @@ int SSLSocket_close(networkHandles* net);
|
|||
int SSLSocket_putdatas(SSL* ssl, int socket, char* buf0, size_t buf0len, int count, char** buffers, size_t* buflens, int* frees);
|
||||
int SSLSocket_connect(SSL* ssl, int socket);
|
||||
|
||||
int SSLSocket_getPendingRead();
|
||||
int SSLSocket_getPendingRead(void);
|
||||
int SSLSocket_continueWrite(pending_writes* pw);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -109,7 +109,7 @@ int Socket_error(char* aString, int sock)
|
|||
/**
|
||||
* Initialize the socket module
|
||||
*/
|
||||
void Socket_outInitialize()
|
||||
void Socket_outInitialize(void)
|
||||
{
|
||||
#if defined(WIN32) || defined(WIN64)
|
||||
WORD winsockVer = 0x0202;
|
||||
|
|
@ -138,7 +138,7 @@ void Socket_outInitialize()
|
|||
/**
|
||||
* Terminate the socket module
|
||||
*/
|
||||
void Socket_outTerminate()
|
||||
void Socket_outTerminate(void)
|
||||
{
|
||||
FUNC_ENTRY;
|
||||
ListFree(s.connect_pending);
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@ thread_type Thread_start(thread_fn fn, void* parameter)
|
|||
* Create a new mutex
|
||||
* @return the new mutex
|
||||
*/
|
||||
mutex_type Thread_create_mutex()
|
||||
mutex_type Thread_create_mutex(void)
|
||||
{
|
||||
mutex_type mutex = NULL;
|
||||
int rc = 0;
|
||||
|
|
@ -166,7 +166,7 @@ void Thread_destroy_mutex(mutex_type mutex)
|
|||
* Get the thread id of the thread from which this function is called
|
||||
* @return thread id, type varying according to OS
|
||||
*/
|
||||
thread_id_type Thread_getid()
|
||||
thread_id_type Thread_getid(void)
|
||||
{
|
||||
#if defined(WIN32) || defined(WIN64)
|
||||
return GetCurrentThreadId();
|
||||
|
|
@ -194,7 +194,7 @@ static struct
|
|||
* Create a new semaphore
|
||||
* @return the new condition variable
|
||||
*/
|
||||
sem_type Thread_create_sem()
|
||||
sem_type Thread_create_sem(void)
|
||||
{
|
||||
sem_type sem = NULL;
|
||||
int rc = 0;
|
||||
|
|
@ -364,7 +364,7 @@ int Thread_destroy_sem(sem_type sem)
|
|||
* Create a new condition variable
|
||||
* @return the condition variable struct
|
||||
*/
|
||||
cond_type Thread_create_cond()
|
||||
cond_type Thread_create_cond(void)
|
||||
{
|
||||
cond_type condvar = NULL;
|
||||
int rc = 0;
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@
|
|||
typedef cond_type_struct *cond_type;
|
||||
typedef sem_t *sem_type;
|
||||
|
||||
cond_type Thread_create_cond();
|
||||
cond_type Thread_create_cond(void);
|
||||
int Thread_signal_cond(cond_type);
|
||||
int Thread_wait_cond(cond_type condvar, int timeout);
|
||||
int Thread_destroy_cond(cond_type);
|
||||
|
|
@ -48,14 +48,14 @@
|
|||
|
||||
thread_type Thread_start(thread_fn, void*);
|
||||
|
||||
mutex_type Thread_create_mutex();
|
||||
mutex_type Thread_create_mutex(void);
|
||||
int Thread_lock_mutex(mutex_type);
|
||||
int Thread_unlock_mutex(mutex_type);
|
||||
void Thread_destroy_mutex(mutex_type);
|
||||
|
||||
thread_id_type Thread_getid();
|
||||
thread_id_type Thread_getid(void);
|
||||
|
||||
sem_type Thread_create_sem();
|
||||
sem_type Thread_create_sem(void);
|
||||
int Thread_wait_sem(sem_type sem, int timeout);
|
||||
int Thread_check_sem(sem_type sem);
|
||||
int Thread_post_sem(sem_type sem);
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ struct Options
|
|||
};
|
||||
|
||||
|
||||
void usage()
|
||||
void usage(void)
|
||||
{
|
||||
printf("options:\n connection, clientid1, clientid2, username, password, MQTTversion, iterations, verbose\n");
|
||||
exit(-1);
|
||||
|
|
@ -284,7 +284,7 @@ int messageArrived(void* context, char* topicName, int topicLen, MQTTClient_mess
|
|||
}
|
||||
|
||||
|
||||
void clearMessages()
|
||||
void clearMessages(void)
|
||||
{
|
||||
int i;
|
||||
|
||||
|
|
@ -296,7 +296,7 @@ void clearMessages()
|
|||
messageCount = 0;
|
||||
}
|
||||
|
||||
void cleanup()
|
||||
void cleanup(void)
|
||||
{
|
||||
// clean all client state
|
||||
char* clientids[] = {options.clientid1, options.clientid2};
|
||||
|
|
@ -365,7 +365,7 @@ void cleanup()
|
|||
}
|
||||
|
||||
|
||||
int basic_test()
|
||||
int basic_test(void)
|
||||
{
|
||||
int i, rc;
|
||||
MQTTClient_connectOptions opts = MQTTClient_connectOptions_initializer;
|
||||
|
|
@ -428,7 +428,7 @@ int basic_test()
|
|||
|
||||
|
||||
|
||||
int offline_message_queueing_test()
|
||||
int offline_message_queueing_test(void)
|
||||
{
|
||||
int i, rc;
|
||||
MQTTClient_connectOptions opts = MQTTClient_connectOptions_initializer;
|
||||
|
|
@ -505,7 +505,7 @@ int offline_message_queueing_test()
|
|||
}
|
||||
|
||||
|
||||
int retained_message_test()
|
||||
int retained_message_test(void)
|
||||
{
|
||||
int i, rc;
|
||||
MQTTClient_connectOptions opts = MQTTClient_connectOptions_initializer;
|
||||
|
|
@ -674,7 +674,7 @@ typedef struct
|
|||
} MQTTClients;
|
||||
|
||||
|
||||
int will_message_test()
|
||||
int will_message_test(void)
|
||||
{
|
||||
int i, rc, count = 0;
|
||||
MQTTClient_connectOptions opts = MQTTClient_connectOptions_initializer;
|
||||
|
|
@ -740,7 +740,7 @@ int will_message_test()
|
|||
}
|
||||
|
||||
|
||||
int overlapping_subscriptions_test()
|
||||
int overlapping_subscriptions_test(void)
|
||||
{
|
||||
/* overlapping subscriptions. When there is more than one matching subscription for the same client for a topic,
|
||||
the server may send back one message with the highest QoS of any matching subscription, or one message for
|
||||
|
|
@ -806,7 +806,7 @@ int overlapping_subscriptions_test()
|
|||
}
|
||||
|
||||
|
||||
int keepalive_test()
|
||||
int keepalive_test(void)
|
||||
{
|
||||
/* keepalive processing. We should be kicked off by the server if we don't send or receive any data, and don't send
|
||||
any pings either. */
|
||||
|
|
@ -870,7 +870,7 @@ int keepalive_test()
|
|||
|
||||
|
||||
|
||||
int redelivery_on_reconnect_test()
|
||||
int redelivery_on_reconnect_test(void)
|
||||
{
|
||||
/* redelivery on reconnect. When a QoS 1 or 2 exchange has not been completed, the server should retry the
|
||||
appropriate MQTT packets */
|
||||
|
|
@ -932,7 +932,7 @@ int redelivery_on_reconnect_test()
|
|||
|
||||
|
||||
|
||||
int zero_length_clientid_test()
|
||||
int zero_length_clientid_test(void)
|
||||
{
|
||||
int i, rc, count = 0;
|
||||
MQTTClient_connectOptions opts = MQTTClient_connectOptions_initializer;
|
||||
|
|
@ -971,7 +971,7 @@ int zero_length_clientid_test()
|
|||
}
|
||||
|
||||
|
||||
int dollar_topics_test()
|
||||
int dollar_topics_test(void)
|
||||
{
|
||||
/* $ topics. The specification says that a topic filter which starts with a wildcard does not match topic names that
|
||||
begin with a $. Publishing to a topic which starts with a $ may not be allowed on some servers (which is entirely valid),
|
||||
|
|
@ -1028,7 +1028,7 @@ int dollar_topics_test()
|
|||
}
|
||||
|
||||
|
||||
int subscribe_failure_test()
|
||||
int subscribe_failure_test(void)
|
||||
{
|
||||
/* Subscribe failure. A new feature of MQTT 3.1.1 is the ability to send back negative reponses to subscribe
|
||||
requests. One way of doing this is to subscribe to a topic which is not allowed to be subscribed to.
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@
|
|||
|
||||
#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))
|
||||
|
||||
void usage()
|
||||
void usage(void)
|
||||
{
|
||||
printf("help!!\n");
|
||||
exit(-1);
|
||||
|
|
@ -245,7 +245,7 @@ char output[3000];
|
|||
char* cur_output = output;
|
||||
|
||||
|
||||
void write_test_result()
|
||||
void write_test_result(void)
|
||||
{
|
||||
long duration = elapsed(global_start_time);
|
||||
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@
|
|||
|
||||
#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))
|
||||
|
||||
void usage()
|
||||
void usage(void)
|
||||
{
|
||||
printf("help!!\n");
|
||||
exit(-1);
|
||||
|
|
@ -239,7 +239,7 @@ char output[3000];
|
|||
char* cur_output = output;
|
||||
|
||||
|
||||
void write_test_result()
|
||||
void write_test_result(void)
|
||||
{
|
||||
long duration = elapsed(global_start_time);
|
||||
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ char* persistenceStore = NULL;
|
|||
|
||||
#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))
|
||||
|
||||
void usage()
|
||||
void usage(void)
|
||||
{
|
||||
printf("Options:\n");
|
||||
printf("\t--test_no <test_no> - Run test number <test_no>\n");
|
||||
|
|
@ -359,7 +359,7 @@ char output[3000];
|
|||
char* cur_output = output;
|
||||
|
||||
|
||||
void write_test_result()
|
||||
void write_test_result(void)
|
||||
{
|
||||
long duration = elapsed(global_start_time);
|
||||
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@
|
|||
|
||||
#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))
|
||||
|
||||
void usage()
|
||||
void usage(void)
|
||||
{
|
||||
printf("help!!\n");
|
||||
exit(-1);
|
||||
|
|
@ -222,7 +222,7 @@ START_TIME_TYPE global_start_time;
|
|||
char output[3000];
|
||||
char* cur_output = output;
|
||||
|
||||
void write_test_result()
|
||||
void write_test_result(void)
|
||||
{
|
||||
long duration = elapsed(global_start_time);
|
||||
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@
|
|||
|
||||
#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))
|
||||
|
||||
void usage()
|
||||
void usage(void)
|
||||
{
|
||||
printf("Options:\n");
|
||||
printf("\t--test_no <test_no> - Run test number <test_no>\n");
|
||||
|
|
@ -278,7 +278,7 @@ char output[3000];
|
|||
char* cur_output = output;
|
||||
|
||||
|
||||
void write_test_result()
|
||||
void write_test_result(void)
|
||||
{
|
||||
long duration = elapsed(global_start_time);
|
||||
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@
|
|||
#include <winsock2.h>
|
||||
#endif
|
||||
|
||||
void usage()
|
||||
void usage(void)
|
||||
{
|
||||
printf("help!!\n");
|
||||
exit(-1);
|
||||
|
|
@ -499,7 +499,7 @@ void connectionLost(void* context, char* cause)
|
|||
}
|
||||
|
||||
|
||||
int recreateReconnect()
|
||||
int recreateReconnect(void)
|
||||
{
|
||||
int rc;
|
||||
|
||||
|
|
@ -608,7 +608,7 @@ void messageSent(void* context, MQTTAsync_successData* response)
|
|||
}
|
||||
|
||||
|
||||
void one_iteration()
|
||||
void one_iteration(void)
|
||||
{
|
||||
int interval = 0;
|
||||
int i = 0;
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@
|
|||
|
||||
#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))
|
||||
|
||||
void usage()
|
||||
void usage(void)
|
||||
{
|
||||
printf("help!!\n");
|
||||
exit(-1);
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ char unique[50]; // unique suffix/prefix to add to clientid/topic etc
|
|||
|
||||
#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))
|
||||
|
||||
void usage()
|
||||
void usage(void)
|
||||
{
|
||||
printf("help!!\n");
|
||||
exit(-1);
|
||||
|
|
@ -200,7 +200,7 @@ char output[3000];
|
|||
char* cur_output = output;
|
||||
|
||||
|
||||
void write_test_result()
|
||||
void write_test_result(void)
|
||||
{
|
||||
long duration = elapsed(global_start_time);
|
||||
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@
|
|||
|
||||
#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))
|
||||
|
||||
void usage()
|
||||
void usage(void)
|
||||
{
|
||||
printf("help!!\n");
|
||||
exit(-1);
|
||||
|
|
@ -234,7 +234,7 @@ char* cur_output = output;
|
|||
int test_finished = 0;
|
||||
|
||||
|
||||
void write_test_result()
|
||||
void write_test_result(void)
|
||||
{
|
||||
long duration = elapsed(global_start_time);
|
||||
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@
|
|||
|
||||
#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))
|
||||
|
||||
void usage()
|
||||
void usage(void)
|
||||
{
|
||||
printf("help!!\n");
|
||||
exit(-1);
|
||||
|
|
@ -233,7 +233,7 @@ char output[3000];
|
|||
char* cur_output = output;
|
||||
|
||||
|
||||
void write_test_result()
|
||||
void write_test_result(void)
|
||||
{
|
||||
long duration = elapsed(global_start_time);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue