Skip to content

Commit 3ef0b01

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 6e5c9d5 commit 3ef0b01

1 file changed

Lines changed: 13 additions & 14 deletions

File tree

0001-Fix-h_errno-declarations-for-Windows.patch

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,28 +14,27 @@ index f058c320d..aba640864 100644
1414
+++ b/thirdparty/EVPath/EVPath/ip_config.c
1515
@@ -387,7 +387,9 @@ get_qual_hostname(char *buf, int len, attr_list attrs,
1616
if (buf[0] == 0) {
17-
/* bloody hell, what do you have to do? */
18-
struct in_addr IP;
17+
/* bloody hell, what do you have to do? */
18+
struct in_addr IP;
1919
+#ifndef HAVE_WINDOWS_H
20-
extern int h_errno;
20+
extern int h_errno;
2121
+#endif
22-
char *iface;
23-
if (get_string_attr(attrs, CM_IP_INTERFACE, &iface)){
24-
IP.s_addr = htonl(get_self_ip_iface(trace_func, trace_data, iface));
22+
char *iface;
23+
if (get_string_attr(attrs, CM_IP_INTERFACE, &iface)){
24+
IP.s_addr = htonl(get_self_ip_iface(trace_func, trace_data, iface));
2525
diff --git a/thirdparty/EVPath/EVPath/qual_hostname.c b/thirdparty/EVPath/EVPath/qual_hostname.c
2626
index 138dde170..52cb8c6e0 100644
2727
--- a/thirdparty/EVPath/EVPath/qual_hostname.c
2828
+++ b/thirdparty/EVPath/EVPath/qual_hostname.c
2929
@@ -342,7 +342,9 @@ get_qual_hostname(void *cm, char *buf, int len, CMtrans_services svc, attr_list
3030
if (buf[0] == 0) {
31-
/* bloody hell, what do you have to do? */
32-
struct in_addr IP;
31+
/* bloody hell, what do you have to do? */
32+
struct in_addr IP;
3333
+#ifndef HAVE_WINDOWS_H
34-
extern int h_errno;
34+
extern int h_errno;
3535
+#endif
36-
IP.s_addr = htonl(get_self_ip_addr(cm, svc));
37-
svc->trace_out(cm, "CM<transport> - No hostname yet, trying gethostbyaddr on IP %lx", IP);
38-
if (!is_private_IP(ntohl(IP.s_addr))) {
39-
--
36+
IP.s_addr = htonl(get_self_ip_addr(cm, svc));
37+
svc->trace_out(cm, "CM<transport> - No hostname yet, trying gethostbyaddr on IP %lx", IP);
38+
if (!is_private_IP(ntohl(IP.s_addr))) {
39+
--
4040
2.51.2
41-

0 commit comments

Comments
 (0)