mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-04 12:01:41 +02:00
testing/powerstat: upgrade to 0.04.01
This commit is contained in:
parent
2a80c925d5
commit
772ea4361e
@ -1,20 +0,0 @@
|
||||
Author: ptrcnull <git@ptrcnull.me>
|
||||
Date: Sun Feb 6 08:51:27 2022 +0100
|
||||
|
||||
Remove "static" from strlcpy
|
||||
|
||||
powerstat.c:339:15: error: static declaration of 'strlcpy' follows non-static declaration
|
||||
|
||||
diff --git a/powerstat.c b/powerstat.c
|
||||
index cf5fc6e..7d03f66 100644
|
||||
--- a/powerstat.c
|
||||
+++ b/powerstat.c
|
||||
@@ -336,7 +336,7 @@ static const int signals[] = {
|
||||
* strlcpy()
|
||||
* BSD strlcpy
|
||||
*/
|
||||
-static size_t strlcpy(char *dst, const char *src, size_t len)
|
||||
+size_t strlcpy(char *dst, const char *src, size_t len)
|
||||
{
|
||||
char *d = dst;
|
||||
const char *s = src;
|
||||
@ -1,7 +1,7 @@
|
||||
# Contributor: Niklas Cathor <niklas.cathor@gmx.de>
|
||||
# Maintainer: Niklas Cathor <niklas.cathor@gmx.de>
|
||||
pkgname=powerstat
|
||||
pkgver=0.03.03
|
||||
pkgver=0.04.01
|
||||
pkgrel=0
|
||||
pkgdesc="Measures power consumption via ACPI battery data"
|
||||
url="https://github.com/ColinIanKing/powerstat"
|
||||
@ -9,9 +9,7 @@ arch="all"
|
||||
license="GPL-2.0-only"
|
||||
depends="linux-headers"
|
||||
subpackages="$pkgname-doc $pkgname-bash-completion"
|
||||
source="https://github.com/ColinIanKing/powerstat/archive/V$pkgver/powerstat-$pkgver.tar.gz
|
||||
0001-strlcpy-no-static.patch
|
||||
"
|
||||
source="https://github.com/ColinIanKing/powerstat/archive/V$pkgver/powerstat-$pkgver.tar.gz"
|
||||
options="!check" # no tests
|
||||
|
||||
build() {
|
||||
@ -23,6 +21,5 @@ package() {
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
f22d54c9936cdaee3521d5d89bf22a05f1a2ca6d9be2419d753a5c6c9148c3764a4fb81b2b45db2ab6b82802bcfa2791246d29210e63019a29f244ca59a504f9 powerstat-0.03.03.tar.gz
|
||||
38b61eaf84d6551f8f88541b6be011eec473b1c10634a6b9c67aeb38484bb6379a44ded595272d2879ff0eb8b5da72724b6677a4390821ddc66f5e6897c74213 0001-strlcpy-no-static.patch
|
||||
83d6381fc311968466a02bf578c279e48796bf53120c2583dfcbed2f3ee3deef21771a1d0ecfcc6774b7cc068a9657d624bc5f23ba2eaf7dbfd539b1c60cf201 powerstat-0.04.01.tar.gz
|
||||
"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user