net: wget: make wget_with_dns return value compatible with its lwip version
authorAdriano Cordova <adrianox@gmail.com>
Mon, 11 Nov 2024 21:08:59 +0000 (18:08 -0300)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 16 Nov 2024 20:35:05 +0000 (21:35 +0100)
commitde28a2a5f2ad93b156b39c2aee24cb5d01c7e619
tree50ed2fe26b25f327ec9a03e78bdc7ab97b0fe3e9
parent2dd076a9c1b4137f0a48e84596fa29da2e957858
net: wget: make wget_with_dns return value compatible with its lwip version

There are two wget_with_dns functions, one in the legacy network
stack and one in lwip, but the return values are not compatible.
This commit modifies the legacy version of wget_with_dns so that
the return values are compatible: 0 on success, otherwise a negative
error. This way wget_with_dns can be called in a network stack
agnostic way.

Signed-off-by: Adriano Cordova <adrianox@gmail.com>
include/net-common.h
include/net-lwip.h
net/wget.c