util: rework strappenda(), and rename it strjoina()
After all it is now much more like strjoin() than strappend(). At the same time, add support for NULL sentinels, even if they are normally not necessary.
This commit is contained in:
@@ -76,7 +76,7 @@ static int reply_query_state(DnsQuery *q) {
|
||||
rc = p;
|
||||
}
|
||||
|
||||
n = strappenda(_BUS_ERROR_DNS, rc);
|
||||
n = strjoina(_BUS_ERROR_DNS, rc);
|
||||
sd_bus_error_setf(&error, n, "Could not resolve '%s', server or network returned error %s", name, rc);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user