aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Smeding <tom.smeding@gmail.com>2020-06-29 20:39:33 +0200
committerTom Smeding <tom.smeding@gmail.com>2020-06-29 20:39:33 +0200
commit13198c13cd9d610e19cc8ab18a917b4b1505b123 (patch)
tree4884eb9f622d733ef3b94de22fbf95022335fda3
parentdaca7b9549b8426af1678d039af2f854588a5edd (diff)
server: Local functions are static
-rw-r--r--main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.c b/main.c
index bec763f..03bf7b0 100644
--- a/main.c
+++ b/main.c
@@ -131,7 +131,7 @@ static bool timeout_callback(int fd){
}
#ifndef __APPLE__
-void srandomdev(void){
+static void srandomdev(void){
FILE *f=fopen("/dev/urandom","r");
assert(f);
unsigned int seed;
@@ -142,7 +142,7 @@ void srandomdev(void){
}
#endif
-void signal_handler(int sig){
+static void signal_handler(int sig){
if(sig==SIGPIPE){
// ignore
}