@@ -224,7 +224,7 @@ char* genmsg(struct ChatHist **pp, const char *fmt, ...) {
224
224
return h -> msg ;
225
225
}
226
226
227
- char * getftime () {
227
+ char * getftime (void ) {
228
228
static char timebuf [64 ];
229
229
230
230
time_t tt = time (NULL );
@@ -338,7 +338,7 @@ char *bin2hex(const uint8_t *bin, size_t length) {
338
338
return saved ;
339
339
}
340
340
341
- struct ChatHist * * get_current_histp () {
341
+ struct ChatHist * * get_current_histp (void ) {
342
342
if (TalkingTo == TALK_TYPE_NULL ) return NULL ;
343
343
uint32_t num = INDEX_TO_NUM (TalkingTo );
344
344
switch (INDEX_TO_TYPE (TalkingTo )) {
@@ -374,11 +374,11 @@ struct termios saved_tattr;
374
374
375
375
struct AsyncREPL * async_repl ;
376
376
377
- void arepl_exit () {
377
+ void arepl_exit (void ) {
378
378
tcsetattr (NEW_STDIN_FILENO , TCSAFLUSH , & saved_tattr );
379
379
}
380
380
381
- void setup_arepl () {
381
+ void setup_arepl (void ) {
382
382
if (!(isatty (STDIN_FILENO ) && isatty (STDOUT_FILENO ))) {
383
383
fputs ("! stdout & stdin should be connected to tty" , stderr );
384
384
exit (1 );
@@ -678,7 +678,7 @@ void group_peer_name_cb(Tox *tox, uint32_t group_num, uint32_t peer_num, const u
678
678
*
679
679
******************************************************************************/
680
680
681
- void create_tox ()
681
+ void create_tox (void )
682
682
{
683
683
struct Tox_Options * options = tox_options_new (NULL );
684
684
tox_options_set_start_port (options , PORT_RANGE_START );
@@ -708,7 +708,7 @@ void create_tox()
708
708
tox_options_free (options );
709
709
}
710
710
711
- void init_friends () {
711
+ void init_friends (void ) {
712
712
size_t sz = tox_self_get_friend_list_size (tox );
713
713
uint32_t * friend_list = malloc (sizeof (uint32_t ) * sz );
714
714
tox_self_get_friend_list (tox , friend_list );
@@ -744,7 +744,7 @@ void init_friends() {
744
744
tox_self_get_public_key (tox , self .pubkey );
745
745
}
746
746
747
- void update_savedata_file ()
747
+ void update_savedata_file (void )
748
748
{
749
749
if (!(savedata_filename && savedata_tmp_filename )) return ;
750
750
@@ -761,7 +761,7 @@ void update_savedata_file()
761
761
free (savedata );
762
762
}
763
763
764
- void bootstrap ()
764
+ void bootstrap (void )
765
765
{
766
766
for (size_t i = 0 ; i < sizeof (bootstrap_nodes )/sizeof (struct DHT_node ); i ++ ) {
767
767
uint8_t * bin = hex2bin (bootstrap_nodes [i ].key_hex );
@@ -770,7 +770,7 @@ void bootstrap()
770
770
}
771
771
}
772
772
773
- void setup_tox ()
773
+ void setup_tox (void )
774
774
{
775
775
create_tox ();
776
776
init_friends ();
@@ -1248,7 +1248,7 @@ char *poptok(char **strp) {
1248
1248
return save ;
1249
1249
}
1250
1250
1251
- void repl_iterate (){
1251
+ void repl_iterate (void ){
1252
1252
static char buf [128 ];
1253
1253
static char line [LINE_MAX_SIZE ];
1254
1254
while (1 ) {
0 commit comments