Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[fix] static fns for visibility issues

  • Loading branch information...
commit 5533b72b2b935f54da1de9c2ef9976ba8fff4589 1 parent e00da35
@bmeck authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 fixtures/nix.c
View
4 fixtures/nix.c
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.