Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package icmpinfo for openSUSE:Factory 
checked in at 2025-03-06 14:48:00
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/icmpinfo (Old)
 and      /work/SRC/openSUSE:Factory/.icmpinfo.new.19136 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "icmpinfo"

Thu Mar  6 14:48:00 2025 rev:19 rq:1250432 version:1.11

Changes:
--------
--- /work/SRC/openSUSE:Factory/icmpinfo/icmpinfo.changes        2024-02-25 
14:05:10.966866941 +0100
+++ /work/SRC/openSUSE:Factory/.icmpinfo.new.19136/icmpinfo.changes     
2025-03-06 14:48:09.484003762 +0100
@@ -1,0 +2,7 @@
+Wed Mar  5 08:03:51 UTC 2025 - [email protected]
+
+- added patches
+  fix build with gcc15
+  + icmpinfo-gcc15.patch
+
+-------------------------------------------------------------------

New:
----
  icmpinfo-gcc15.patch

BETA DEBUG BEGIN:
  New:  fix build with gcc15
  + icmpinfo-gcc15.patch
BETA DEBUG END:

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ icmpinfo.spec ++++++
--- /var/tmp/diff_new_pack.qDhwSw/_old  2025-03-06 14:48:12.972150041 +0100
+++ /var/tmp/diff_new_pack.qDhwSw/_new  2025-03-06 14:48:12.996151048 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package icmpinfo
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2025 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,7 +12,7 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
@@ -22,10 +22,12 @@
 Summary:        A Tool for Looking at ICMP Messages
 License:        BSD-3-Clause
 Group:          Productivity/Networking/Diagnostic
-Url:            http://www.demailly.com/~dl/softs.html
+URL:            http://www.demailly.com/~dl/softs.html
 Source:         icmpinfo-%{version}.tar.gz
 Source1:        COPYRIGHT
 Patch0:         icmpinfo-%{version}.dif
+# build with gcc15
+Patch1:         icmpinfo-gcc15.patch
 Requires:       netcfg
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 

++++++ icmpinfo-gcc15.patch ++++++
--- defs.h      2025-03-05 08:50:26.092538271 +0100
+++ defs.h      2025-03-05 08:45:23.249511194 +0100
@@ -39,7 +39,7 @@ DCLARE u_char         recvpack[MAXPACKET];    /* t
 
 DCLARE int                     sockfd; /* socket file descriptor */
 
-char           *inet_ntoa();   /* BSD library routine */
+char           *inet_ntoa(struct in_addr in);  /* BSD library routine */
 
 DCLARE int     nonamequery;  /*  flag for query/noquery of ip -> name */
 DCLARE int     showsrcip;    /*  flag for showing or not src ip */
--- print.c     2025-03-05 08:50:26.092716802 +0100
+++ print.c     2025-03-05 08:50:20.588311445 +0100
@@ -18,23 +18,19 @@
 #include <time.h>
 #include <stddef.h>
 
-char to_hex(a)
-  int a;
+char to_hex(int a)
 {
   return ((char)(a <= 9 ? a + '0' : (a -10) + 'A'));
 }
 
-int pr_pack(buf, cc, from)
-char                   *buf;   /* ptr to start of IP header */
-int                    cc;     /* total size of received packet */
-struct sockaddr_in     *from;  /* address of sender */
+int pr_pack(char *buf, int cc, struct sockaddr_in *from)
 {
   int                  iphdrlen,doipdecoding=1;
   struct ip            *ip;    /* ptr to IP header */
   register struct icmp *icp;   /* ptr to ICMP header */
   struct tcphdr        *tp;    /* ptr to TCP header */
   time_t                       t;
-  char                 *pr_type(),*pr_subtype(),*strtime;
+  char                 *pr_type(register int t),*pr_subtype(register int 
t),*strtime;
   struct hostent       *hostent=NULL;
   struct servent       *servent=NULL;
   static char prbuf[1024];     /* provide enough room for even the longest 
hosts*/
@@ -185,8 +181,7 @@ struct sockaddr_in  *from;  /* address of
  */
 
 char *
-pr_type(t)
-register int t;
+pr_type(register int t)
 {
        static char     *ttab[] = {
                "Echo_Reply",
@@ -223,8 +218,7 @@ register int t;
  */
 
 char *
-pr_subtype(t)
-register int t;
+pr_subtype(register int t)
 {
        static char     *ttab[] = {
          "Net",

Reply via email to