Permalink
Browse files

[fix] static fns for visibility issues

  • Loading branch information...
1 parent e00da35 commit 5533b72b2b935f54da1de9c2ef9976ba8fff4589 @bmeck committed Mar 20, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 fixtures/nix.c
View
@@ -27,13 +27,13 @@ static void __interposed_init()
}
#define RTLD_SEND(params, ret) __interposed_RTLD_SEND(__FUNCTION__, params, ret)
-void __interposed_RTLD_SEND(const char name[], char* params, char* ret) {
+static void __interposed_RTLD_SEND(const char name[], char* params, char* ret) {
char msg[4096];
int length = sprintf(msg, "{\"method\":\"%s\",\"params\":%s,\"result\":%s}\n",name,params,ret);
write(__interposed_CHANNEL_FD,msg,length);
}
-void sockaddr_json(struct sockaddr_in *in_addr, char addr_str[256]) {
+static void sockaddr_json(struct sockaddr_in *in_addr, char addr_str[256]) {
char str[INET_ADDRSTRLEN];
int size = inet_ntop(in_addr->sin_family, &(in_addr->sin_addr), str, INET_ADDRSTRLEN);
snprintf(addr_str, 256, "{\"port\":%d,\"address\":\"%s\"}", ntohs(in_addr->sin_port), str);

0 comments on commit 5533b72

Please sign in to comment.