package/sispmctl: bump to version 4.9

Drop patch (already in version)

https://sourceforge.net/p/sispmctl/git/ci/release-4.9/tree/ChangeLog

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
(cherry picked from commit 63847a4b2e)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
Fabrice Fontaine 2021-09-19 21:58:13 +02:00 committed by Peter Korsgaard
parent 85e17e43c7
commit 34a1b25c69
3 changed files with 2 additions and 58 deletions

View File

@ -1,56 +0,0 @@
From 3ccbb67c71aa13b9a37a58363d37a18b8fdbf300 Mon Sep 17 00:00:00 2001
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Date: Thu, 29 Oct 2020 13:36:00 +0100
Subject: [PATCH] src/schedule.c: fix build with gcc 4.8
Fix the following build failure with gcc 4.8:
schedule.c:19:2: error: 'for' loop initial declarations are only allowed in C99 mode
for (int i = 0; i < 4; ++i) {
^
schedule.c:19:2: note: use option -std=c99 or -std=gnu99 to compile your code
schedule.c: In function 'pms2_read_block':
schedule.c:39:2: error: 'for' loop initial declarations are only allowed in C99 mode
for (int i = 0; i < 4; ++i) {
^
Fixes:
- http://autobuild.buildroot.org/results/079f1454121d38a83c49529c0f6cc8ed61fd5abb
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
[Upstream status:
https://sourceforge.net/p/sispmctl/git/merge-requests/1]
---
src/schedule.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/schedule.c b/src/schedule.c
index 4dd908d..1725421 100644
--- a/src/schedule.c
+++ b/src/schedule.c
@@ -15,8 +15,9 @@
static unsigned char
*pms2_write_block(uint8_t action, uint32_t time, unsigned char *ptr)
{
+ int i;
*ptr++ = action;
- for (int i = 0; i < 4; ++i) {
+ for (i = 0; i < 4; ++i) {
*ptr++ = (uint8_t)time;
time >>= 8;
}
@@ -34,9 +35,10 @@ static unsigned char
static const unsigned char
*pms2_read_block(uint8_t *action, uint32_t *time, const unsigned char *ptr)
{
+ int i;
*action = *ptr++;
*time = 0;
- for (int i = 0; i < 4; ++i) {
+ for (i = 0; i < 4; ++i) {
*time >>= 8;
*time += (uint32_t)*ptr++ << 24;
}
--
2.28.0

View File

@ -1,3 +1,3 @@
# Locally computed:
sha256 0f8391f7e95cbf1fb96a68686a1dcf1e16747b050ae1b8ff90653c99976068db sispmctl-4.8.tar.gz
sha256 6a9ec7125e8c01bb45d4a3b56f07fb41fc437020c8dcd8c0f29ebb98dc55a647 sispmctl-4.9.tar.gz
sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 COPYING

View File

@ -4,7 +4,7 @@
#
################################################################################
SISPMCTL_VERSION = 4.8
SISPMCTL_VERSION = 4.9
SISPMCTL_SITE = http://downloads.sourceforge.net/project/sispmctl/sispmctl/sispmctl-$(SISPMCTL_VERSION)
SISPMCTL_LICENSE = GPL-2.0+
SISPMCTL_LICENSE_FILES = COPYING