]> git.ozlabs.org Git - petitboot/blobdiff - lib/pb-config/storage-powerpc-nvram.c
sysinfo: Add interface link status to sysinfo data
[petitboot] / lib / pb-config / storage-powerpc-nvram.c
index 9dc565a099a154520edd453209620ca3cf666dd1..92305f93882cad62dac51324e4d8881f167e9a2d 100644 (file)
@@ -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, "");