X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=lib%2Fpb-config%2Fstorage-powerpc-nvram.c;h=92305f93882cad62dac51324e4d8881f167e9a2d;hb=e319737c4f67ad1c468d980aa20d6dc7e7d5cdb5;hp=9dc565a099a154520edd453209620ca3cf666dd1;hpb=8e259f91a75cf9fd7f839cd95aa71c2fe07757f1;p=petitboot diff --git a/lib/pb-config/storage-powerpc-nvram.c b/lib/pb-config/storage-powerpc-nvram.c index 9dc565a..92305f9 100644 --- a/lib/pb-config/storage-powerpc-nvram.c +++ b/lib/pb-config/storage-powerpc-nvram.c @@ -426,7 +426,7 @@ static char *dns_config_str(void *ctx, const char **dns_servers, int n) char *str; int i; - str = talloc_strdup(ctx, "dns="); + str = talloc_strdup(ctx, "dns,"); for (i = 0; i < n; i++) { str = talloc_asprintf_append(str, "%s%s", i == 0 ? "" : ",", @@ -439,8 +439,8 @@ static char *dns_config_str(void *ctx, const char **dns_servers, int n) static void update_network_config(struct powerpc_nvram_storage *nv, struct config *config) { + unsigned int i; char *val; - int i; val = talloc_strdup(nv, "");