@@ -220,7 +220,7 @@ char* genmsg(struct ChatHist **pp, const char *fmt, ...) {
220
220
return h -> msg ;
221
221
}
222
222
223
- char * getftime () {
223
+ char * getftime (void ) {
224
224
static char timebuf [64 ];
225
225
226
226
time_t tt = time (NULL );
@@ -334,7 +334,7 @@ char *bin2hex(const uint8_t *bin, size_t length) {
334
334
return saved ;
335
335
}
336
336
337
- struct ChatHist * * get_current_histp () {
337
+ struct ChatHist * * get_current_histp (void ) {
338
338
if (TalkingTo == TALK_TYPE_NULL ) return NULL ;
339
339
uint32_t num = INDEX_TO_NUM (TalkingTo );
340
340
switch (INDEX_TO_TYPE (TalkingTo )) {
@@ -370,11 +370,11 @@ struct termios saved_tattr;
370
370
371
371
struct AsyncREPL * async_repl ;
372
372
373
- void arepl_exit () {
373
+ void arepl_exit (void ) {
374
374
tcsetattr (NEW_STDIN_FILENO , TCSAFLUSH , & saved_tattr );
375
375
}
376
376
377
- void setup_arepl () {
377
+ void setup_arepl (void ) {
378
378
if (!(isatty (STDIN_FILENO ) && isatty (STDOUT_FILENO ))) {
379
379
fputs ("! stdout & stdin should be connected to tty" , stderr );
380
380
exit (1 );
@@ -674,7 +674,7 @@ void group_peer_name_cb(Tox *tox, uint32_t group_num, uint32_t peer_num, const u
674
674
*
675
675
******************************************************************************/
676
676
677
- void create_tox ()
677
+ void create_tox (void )
678
678
{
679
679
struct Tox_Options * options = tox_options_new (NULL );
680
680
tox_options_set_start_port (options , PORT_RANGE_START );
@@ -704,7 +704,7 @@ void create_tox()
704
704
tox_options_free (options );
705
705
}
706
706
707
- void init_friends () {
707
+ void init_friends (void ) {
708
708
size_t sz = tox_self_get_friend_list_size (tox );
709
709
uint32_t * friend_list = malloc (sizeof (uint32_t ) * sz );
710
710
tox_self_get_friend_list (tox , friend_list );
@@ -740,7 +740,7 @@ void init_friends() {
740
740
tox_self_get_public_key (tox , self .pubkey );
741
741
}
742
742
743
- void update_savedata_file ()
743
+ void update_savedata_file (void )
744
744
{
745
745
if (!(savedata_filename && savedata_tmp_filename )) return ;
746
746
@@ -757,7 +757,7 @@ void update_savedata_file()
757
757
free (savedata );
758
758
}
759
759
760
- void bootstrap ()
760
+ void bootstrap (void )
761
761
{
762
762
for (size_t i = 0 ; i < sizeof (bootstrap_nodes )/sizeof (struct DHT_node ); i ++ ) {
763
763
uint8_t * bin = hex2bin (bootstrap_nodes [i ].key_hex );
@@ -766,7 +766,7 @@ void bootstrap()
766
766
}
767
767
}
768
768
769
- void setup_tox ()
769
+ void setup_tox (void )
770
770
{
771
771
create_tox ();
772
772
init_friends ();
@@ -1244,7 +1244,7 @@ char *poptok(char **strp) {
1244
1244
return save ;
1245
1245
}
1246
1246
1247
- void repl_iterate (){
1247
+ void repl_iterate (void ){
1248
1248
static char buf [128 ];
1249
1249
static char line [LINE_MAX_SIZE ];
1250
1250
while (1 ) {
0 commit comments