confdata.c (552c69b36ebd966186573b9c7a286b390935cce1) | confdata.c (694c49a7c01cc87194be40cb26404b58b68c291c) |
---|---|
1/* 2 * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org> 3 * Released under the terms of the GNU GPL v2.0. 4 */ 5 6#include <sys/stat.h> 7#include <ctype.h> 8#include <errno.h> --- 263 unchanged lines hidden (view full) --- 272 273 for_all_defaults(sym_defconfig_list, prop) { 274 if (expr_calc_value(prop->visible.expr) == no || 275 prop->expr->type != E_SYMBOL) 276 continue; 277 name = conf_expand_value(prop->expr->left.sym->name); 278 in = zconf_fopen(name); 279 if (in) { | 1/* 2 * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org> 3 * Released under the terms of the GNU GPL v2.0. 4 */ 5 6#include <sys/stat.h> 7#include <ctype.h> 8#include <errno.h> --- 263 unchanged lines hidden (view full) --- 272 273 for_all_defaults(sym_defconfig_list, prop) { 274 if (expr_calc_value(prop->visible.expr) == no || 275 prop->expr->type != E_SYMBOL) 276 continue; 277 name = conf_expand_value(prop->expr->left.sym->name); 278 in = zconf_fopen(name); 279 if (in) { |
280 conf_message(_("using defaults found in %s"), | 280 conf_message("using defaults found in %s", |
281 name); 282 goto load; 283 } 284 } 285 } 286 if (!in) 287 return 1; 288 --- 537 unchanged lines hidden (view full) --- 826 if (*tmpname) { 827 strcat(dirname, basename); 828 strcat(dirname, ".old"); 829 rename(newname, dirname); 830 if (rename(tmpname, newname)) 831 return 1; 832 } 833 | 281 name); 282 goto load; 283 } 284 } 285 } 286 if (!in) 287 return 1; 288 --- 537 unchanged lines hidden (view full) --- 826 if (*tmpname) { 827 strcat(dirname, basename); 828 strcat(dirname, ".old"); 829 rename(newname, dirname); 830 if (rename(tmpname, newname)) 831 return 1; 832 } 833 |
834 conf_message(_("configuration written to %s"), newname); | 834 conf_message("configuration written to %s", newname); |
835 836 sym_set_change_count(0); 837 838 return 0; 839} 840 841static int conf_split_config(void) 842{ --- 407 unchanged lines hidden --- | 835 836 sym_set_change_count(0); 837 838 return 0; 839} 840 841static int conf_split_config(void) 842{ --- 407 unchanged lines hidden --- |