Changeset 2350 in MondoRescue for branches/2.2.9/mondo/src/mondorestore/mondo-rstr-newt.c
- Timestamp:
- Aug 28, 2009, 2:24:19 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mondo/src/mondorestore/mondo-rstr-newt.c
r2230 r2350 1933 1933 /** int **************************************************************/ 1934 1934 int i = 0; 1935 int res = 0; 1935 1936 int currline = 0; 1936 1937 int finished = FALSE; … … 1938 1939 /** buffers **********************************************************/ 1939 1940 char tmp[MAX_STR_LEN]; 1941 char *flaws_str = NULL; 1940 1942 char *flaws_str_A = NULL; 1941 1943 char *flaws_str_B = NULL; … … 1945 1947 assert(raidlist != NULL); 1946 1948 1947 mr_asprintf(&flaws_str_A, "%s", " ");1948 mr_asprintf(&flaws_str_B, "%s", " ");1949 mr_asprintf(&flaws_str_C, "%s", " ");1950 1949 if (mountlist->entries > ARBITRARY_MAXIMUM) { 1951 1950 log_to_screen("Arbitrary limits suck, man!"); … … 1964 1963 "Size (MB)"); 1965 1964 headerMsg = newtLabel(2, 1, tmp); 1966 flawsLabelA = newtLabel(2, 13, flaws_str_A);1967 flawsLabelB = newtLabel(2, 14, flaws_str_B);1968 flawsLabelC = newtLabel(2, 15, flaws_str_C);1965 flawsLabelA = newtLabel(2, 13, " "); 1966 flawsLabelB = newtLabel(2, 14, " "); 1967 flawsLabelC = newtLabel(2, 15, " "); 1969 1968 partitionsListbox = 1970 1969 newtListbox(2, 2, 10, NEWT_FLAG_SCROLL | NEWT_FLAG_RETURNEXIT); … … 1976 1975 bEdit, bDelete, bReload, bCancel, bOK, NULL); 1977 1976 while (!finished) { 1978 evaluate_mountlist(mountlist, flaws_str_A, flaws_str_B, 1979 flaws_str_C); 1977 flaws_str = evaluate_mountlist(mountlist, &res); 1978 spread_flaws_across_three_lines(flaws_str, flaws_str_A, flaws_str_B, flaws_str_C); 1979 1980 mr_free(flaws_str); 1981 1980 1982 newtLabelSetText(flawsLabelA, flaws_str_A); 1981 1983 newtLabelSetText(flawsLabelB, flaws_str_B); 1982 1984 newtLabelSetText(flawsLabelC, flaws_str_C); 1983 1985 b_res = newtRunForm(myForm); 1986 mr_free(flaws_str_A); 1987 mr_free(flaws_str_B); 1988 mr_free(flaws_str_C); 1989 1984 1990 if (b_res == bOK) { 1985 if (!evaluate_mountlist 1986 (mountlist, flaws_str_A, flaws_str_B, flaws_str_C)) { 1991 flaws_str = evaluate_mountlist(mountlist, &res); 1992 mr_free(flaws_str); 1993 if (!res) { 1987 1994 finished = 1988 1995 ask_me_yes_or_no … … 2038 2045 } 2039 2046 } 2040 paranoid_free(flaws_str_A);2041 paranoid_free(flaws_str_B);2042 paranoid_free(flaws_str_C);2043 2047 newtFormDestroy(myForm); 2044 2048 newtPopWindow();
Note:
See TracChangeset
for help on using the changeset viewer.