Changeset 1645 in MondoRescue for branches/2.2.5/mondo/src/mondoarchive/mondo-cli.c
- Timestamp:
- Sep 24, 2007, 3:04:43 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.5/mondo/src/mondoarchive/mondo-cli.c
r1540 r1645 210 210 char *g_getfacl = NULL; 211 211 char *g_getfattr = NULL; 212 213 /* Reference to global bkpinfo */ 214 extern struct s_bkpinfo *bkpinfo; 212 215 213 216 /** … … 223 226 */ 224 227 int 225 handle_incoming_parameters(int argc, char *argv[], 226 struct s_bkpinfo *bkpinfo) 228 handle_incoming_parameters(int argc, char *argv[]) 227 229 { 228 230 /*@ int *** */ … … 237 239 238 240 malloc_string(tmp); 239 sensibly_set_tmpdir_and_scratchdir( bkpinfo);241 sensibly_set_tmpdir_and_scratchdir(); 240 242 for (i = 0; i < 128; i++) { 241 243 flag_val[i][0] = '\0'; … … 252 254 retval += res; 253 255 if (!retval) { 254 res = process_switches( bkpinfo,flag_val, flag_set);256 res = process_switches(flag_val, flag_set); 255 257 retval += res; 256 258 } … … 293 295 * @bug Return code not needed. 294 296 */ 295 int process_the_s_switch( struct s_bkpinfo *bkpinfo,char *value)297 int process_the_s_switch(char *value) 296 298 { 297 299 int j; … … 337 339 */ 338 340 int 339 process_switches(struct s_bkpinfo *bkpinfo, 340 char flag_val[128][MAX_STR_LEN], bool flag_set[128]) 341 process_switches(char flag_val[128][MAX_STR_LEN], bool flag_set[128]) 341 342 { 342 343 … … 602 603 ("For the moment, please don't specify a tape size. Mondo should handle end-of-tape gracefully anyway."); 603 604 } 604 if (process_the_s_switch( bkpinfo,flag_val['s'])) {605 if (process_the_s_switch(flag_val['s'])) { 605 606 fatal_error("Bad -s switch"); 606 607 } … … 616 617 } else { /* CD size */ 617 618 if (flag_set['s']) { 618 if (process_the_s_switch( bkpinfo,flag_val['s'])) {619 if (process_the_s_switch(flag_val['s'])) { 619 620 fatal_error("Bad -s switch"); 620 621 }
Note:
See TracChangeset
for help on using the changeset viewer.