Permalink
Browse files

Fix return type of `close_socket_fd`.

An inspection of the code shows the return value is never
captured or examined, so correct the return type to `void`.
  • Loading branch information...
1 parent 451fd5f commit 79d5daae4101c58e97d5fed53ef08e77a1308633 @jonm committed Oct 3, 2015
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/comm.c
  2. +1 −1 src/protos.h
View
@@ -85,7 +85,7 @@ int __main ()
can die, and try to keep these 'invalid' sockets from getting to select
*/
-int close_socket_fd( int desc)
+void close_socket_fd( int desc)
{
struct descriptor_data *d;
extern struct descriptor_data *descriptor_list;
View
@@ -334,7 +334,7 @@ int board_check_locks (int bnum, struct char_data *ch);
/* From comm.c */
int __main ();
-int close_socket_fd( int desc);
+void close_socket_fd( int desc);
int main (int argc, char **argv);
int run_the_game(int port);
int game_loop(int s);

0 comments on commit 79d5daa

Please sign in to comment.