Constify
This commit is contained in:
+1
-1
@@ -51,7 +51,7 @@
|
||||
* the child process or -1 if there is a fork error.
|
||||
*/
|
||||
int
|
||||
run_tcp_server(fko_srv_options_t *opts, int family)
|
||||
run_tcp_server(fko_srv_options_t *opts, const int family)
|
||||
{
|
||||
#if !CODE_COVERAGE
|
||||
pid_t pid, ppid;
|
||||
|
||||
+1
-1
@@ -32,7 +32,7 @@
|
||||
|
||||
/* Function prototypes
|
||||
*/
|
||||
int run_tcp_server(fko_srv_options_t *opts, int family);
|
||||
int run_tcp_server(fko_srv_options_t *opts, const int family);
|
||||
|
||||
#endif /* TCP_SERVER_H */
|
||||
|
||||
|
||||
+1
-1
@@ -50,7 +50,7 @@
|
||||
#include <sys/select.h>
|
||||
|
||||
int
|
||||
run_udp_server(fko_srv_options_t *opts, int family)
|
||||
run_udp_server(fko_srv_options_t *opts, const int family)
|
||||
{
|
||||
int s_sock, sfd_flags, selval, pkt_len;
|
||||
int rv=1, chk_rm_all=0;
|
||||
|
||||
+1
-1
@@ -32,7 +32,7 @@
|
||||
|
||||
/* Function prototypes
|
||||
*/
|
||||
int run_udp_server(fko_srv_options_t *opts, int family);
|
||||
int run_udp_server(fko_srv_options_t *opts, const int family);
|
||||
|
||||
#endif /* UDP_SERVER_H */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user