Rename object to fix duplicate symbol error

pull/3907/head
harjas 3 years ago
parent a83a99812e
commit c2a2dc7238
  1. 4
      eth/rpc/constants_unix.go

@ -21,7 +21,7 @@ package rpc
/* /*
#include <sys/un.h> #include <sys/un.h>
int max_socket_path_size() { int maximum_socket_path_size() {
struct sockaddr_un s; struct sockaddr_un s;
return sizeof(s.sun_path); return sizeof(s.sun_path);
} }
@ -29,5 +29,5 @@ return sizeof(s.sun_path);
import "C" import "C"
var ( var (
max_path_size = C.max_socket_path_size() max_path_size = C.maximum_socket_path_size()
) )

Loading…
Cancel
Save