[PATCH] ipc: Fix args order for swupdate_set_version_range_type() call

8 views
Skip to first unread message

a.a....@gmail.com

unread,
Apr 15, 2026, 5:41:53 AM (7 days ago) Apr 15
to a.k...@tano-systems.com, swup...@googlegroups.com
From: Anton Kikin <a.k...@tano-systems.com>

When calling the swupdate_set_version_range_type() function, the update
type must be passed in the first argument, not the last.

Signed-off-by: Anton Kikin <a.k...@tano-systems.com>
---
ipc/network_ipc-if.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/ipc/network_ipc-if.c b/ipc/network_ipc-if.c
index 5cc3550c..7c209ad4 100644
--- a/ipc/network_ipc-if.c
+++ b/ipc/network_ipc-if.c
@@ -399,10 +399,10 @@ int swupdate_set_version_range(const char *minversion,
const char *currentversion)

{
- return swupdate_set_version_range_type(minversion,
+ return swupdate_set_version_range_type(NULL,
+ minversion,
maxversion,
- currentversion,
- NULL);
+ currentversion);
}

int swupdate_dwl_url (const char *artifact_name, const char *url)
--
2.34.1.windows.1

a.a....@gmail.com

unread,
Apr 15, 2026, 5:42:49 AM (7 days ago) Apr 15
to swup...@googlegroups.com, Anton Kikin

Stefano Babic

unread,
Apr 15, 2026, 6:03:02 AM (7 days ago) Apr 15
to a.a....@gmail.com, swup...@googlegroups.com, Anton Kikin
You're right, thanks for fixing it.

Acked-by: Stefano Babic <stefan...@swupdate.org>

Best regards,
Stefano Babic

--
_______________________________________________________________________
Nabla Software Engineering GmbH
Hirschstr. 111A | 86156 Augsburg | Tel: +49 821 45592596
Geschäftsführer : Stefano Babic | HRB 40522 Augsburg
E-Mail: sba...@nabladev.com


--
_______________________________________________________________________
Nabla Software Engineering GmbH
Hirschstr. 111A | 86156 Augsburg | Tel: +49 821 45592596
Geschäftsführer : Stefano Babic | HRB 40522 Augsburg
E-Mail: sba...@nabladev.com
Reply all
Reply to author
Forward
0 new messages