[tor-dev] C99 compatibility issue in torsocks

This patch is needed to avoid an implicit function declaration:

diff --git a/src/common/config-file.h b/src/common/config-file.h
index 23e1c89d488b789c..e710c202fe099f61 100644
--- a/src/common/config-file.h
+++ b/src/common/config-file.h
@@ -109,6 +109,7 @@ int conf_file_set_allow_inbound(const char *val, struct configuration *config);
int conf_file_set_allow_outbound_localhost(const char *val, struct
     configuration *config);
int conf_file_set_isolate_pid(const char *val, struct configuration *config);
+int conf_file_set_enable_ipv6(const char *val, struct configuration *config);

int conf_apply_socks_auth(struct configuration *config);

I'm not sure where the canonical upstream for this package is, so I'm
reporting it here. Fedora is tracking this here:

  torsocks: Missing declaration in src/common/config-file.h
  <2154535 – torsocks: Missing declaration in src/common/config-file.h;

Related to:

  <https://fedoraproject.org/wiki/Changes/PortingToModernC&gt;
  <https://fedoraproject.org/wiki/Toolchain/PortingToModernC&gt;

···

_______________________________________________
tor-dev mailing list
tor-dev@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-dev

Hi,

thanks for reporting this. I opened a issue on torsocks tracker with
the informations you provided:

Regards,

Trinity Pointard

···

On Sat, 17 Dec 2022 at 16:18, Florian Weimer <fw@deneb.enyo.de> wrote:

This patch is needed to avoid an implicit function declaration:

diff --git a/src/common/config-file.h b/src/common/config-file.h
index 23e1c89d488b789c..e710c202fe099f61 100644
--- a/src/common/config-file.h
+++ b/src/common/config-file.h
@@ -109,6 +109,7 @@ int conf_file_set_allow_inbound(const char *val, struct configuration *config);
int conf_file_set_allow_outbound_localhost(const char *val, struct
                configuration *config);
int conf_file_set_isolate_pid(const char *val, struct configuration *config);
+int conf_file_set_enable_ipv6(const char *val, struct configuration *config);

int conf_apply_socks_auth(struct configuration *config);

I'm not sure where the canonical upstream for this package is, so I'm
reporting it here. Fedora is tracking this here:

  torsocks: Missing declaration in src/common/config-file.h
  <2154535 – torsocks: Missing declaration in src/common/config-file.h;

Related to:

  <https://fedoraproject.org/wiki/Changes/PortingToModernC&gt;
  <https://fedoraproject.org/wiki/Toolchain/PortingToModernC&gt;
_______________________________________________
tor-dev mailing list
tor-dev@lists.torproject.org
tor-dev Info Page

_______________________________________________
tor-dev mailing list
tor-dev@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-dev