pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/net/libfetch/files



Module Name:    pkgsrc
Committed By:   wiz
Date:           Thu May 29 15:07:08 UTC 2025

Modified Files:
        pkgsrc/net/libfetch/files: ftp.c

Log Message:
libfetch: fix build with -Werror=unused-variable and inet6 turned off

>From Michael Small in PR 59448.


To generate a diff of this commit:
cvs rdiff -u -r1.48 -r1.49 pkgsrc/net/libfetch/files/ftp.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/net/libfetch/files/ftp.c
diff -u pkgsrc/net/libfetch/files/ftp.c:1.48 pkgsrc/net/libfetch/files/ftp.c:1.49
--- pkgsrc/net/libfetch/files/ftp.c:1.48        Wed Mar  5 12:06:44 2025
+++ pkgsrc/net/libfetch/files/ftp.c     Thu May 29 15:07:08 2025
@@ -1,4 +1,4 @@
-/*     $NetBSD: ftp.c,v 1.48 2025/03/05 12:06:44 nia Exp $     */
+/*     $NetBSD: ftp.c,v 1.49 2025/05/29 15:07:08 wiz Exp $     */
 /*-
  * Copyright (c) 1998-2004 Dag-Erling Co�dan Sm�rgrav
  * Copyright (c) 2008, 2009, 2010 Joerg Sonnenberger <joerg%NetBSD.org@localhost>
@@ -859,7 +859,9 @@ retry_mode:
                int low = CHECK_FLAG('l');
 #endif
                int d;
+#ifdef INET6
                char hname[INET6_ADDRSTRLEN];
+#endif
 
                switch (u.ss.ss_family) {
                case AF_INET6:



Home | Main Index | Thread Index | Old Index