Hello community,

here is the log from the commit of package powerstat for openSUSE:Factory 
checked in at 2020-05-28 09:20:47
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/powerstat (Old)
 and      /work/SRC/openSUSE:Factory/.powerstat.new.3606 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "powerstat"

Thu May 28 09:20:47 2020 rev:9 rq:809677 version:0.02.23

Changes:
--------
--- /work/SRC/openSUSE:Factory/powerstat/powerstat.changes      2020-03-08 
22:24:58.464108449 +0100
+++ /work/SRC/openSUSE:Factory/.powerstat.new.3606/powerstat.changes    
2020-05-28 09:21:56.177501332 +0200
@@ -1,0 +2,7 @@
+Sat May 16 16:19:56 UTC 2020 - Martin Hauke <[email protected]>
+
+- Update to version 0.02.23
+  * Makefile: respect standard prefix= variable (LP: #1877744)
+  * zero the ws struct to clear static analysis warnings
+
+-------------------------------------------------------------------

Old:
----
  powerstat-0.02.22.tar.gz

New:
----
  powerstat-0.02.23.tar.gz

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

Other differences:
------------------
++++++ powerstat.spec ++++++
--- /var/tmp/diff_new_pack.5aEfvX/_old  2020-05-28 09:21:56.925502982 +0200
+++ /var/tmp/diff_new_pack.5aEfvX/_new  2020-05-28 09:21:56.929502991 +0200
@@ -18,7 +18,7 @@
 
 
 Name:           powerstat
-Version:        0.02.22
+Version:        0.02.23
 Release:        0
 Summary:        Laptop power measuring tool
 License:        GPL-2.0-only

++++++ powerstat-0.02.22.tar.gz -> powerstat-0.02.23.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/powerstat-0.02.22/Makefile 
new/powerstat-0.02.23/Makefile
--- old/powerstat-0.02.22/Makefile      2020-02-26 15:34:32.000000000 +0100
+++ new/powerstat-0.02.23/Makefile      2020-05-16 00:55:19.000000000 +0200
@@ -16,7 +16,7 @@
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 
USA.
 #
 
-VERSION=0.02.22
+VERSION=0.02.23
 
 CFLAGS += -Wall -Wextra -DVERSION='"$(VERSION)"'
 
@@ -30,9 +30,10 @@
        -Wno-missing-braces -Wno-sign-compare -Wno-multichar
 endif
 
-BINDIR=/usr/bin
-MANDIR=/usr/share/man/man8
-BASHDIR=/usr/share/bash-completion/completions
+prefix=/usr
+BINDIR=$(prefix)/bin
+MANDIR=$(prefix)/share/man/man8
+BASHDIR=$(prefix)/share/bash-completion/completions
 
 powerstat: powerstat.o
        $(CC) $(CFLAGS) $< -lm -o $@ $(LDFLAGS)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/powerstat-0.02.22/powerstat.c 
new/powerstat-0.02.23/powerstat.c
--- old/powerstat-0.02.22/powerstat.c   2020-02-26 15:34:32.000000000 +0100
+++ new/powerstat-0.02.23/powerstat.c   2020-05-16 00:55:19.000000000 +0200
@@ -491,6 +491,8 @@
        int fd = 0;
         struct winsize ws;
 
+       (void)memset(&ws, 0, sizeof(ws));
+
         /* if tty and we can get a sane width, return it */
         if (isatty(fd) &&
             (ioctl(fd, TIOCGWINSZ, &ws) != -1) &&


Reply via email to