Deleted Added
full compact
2c2
< * Copyright (c) 1998-2006,2007 Free Software Foundation, Inc. *
---
> * Copyright (c) 1998-2007,2008 Free Software Foundation, Inc. *
47c47
< MODULE_ID("$Id: toe.c,v 1.46 2007/10/13 22:26:38 tom Exp $")
---
> MODULE_ID("$Id: toe.c,v 1.48 2008/01/05 20:41:26 tom Exp $")
318a319
> char *report_file = 0;
326c327
< while ((this_opt = getopt(argc, argv, "0123456789ahuvUV")) != -1) {
---
> while ((this_opt = getopt(argc, argv, "0123456789ahu:vU:V")) != -1) {
351a353
> report_file = optarg;
357a360
> report_file = optarg;
368,369c371,372
< if (direct_dependencies || invert_dependencies) {
< if (freopen(argv[optind], "r", stdin) == 0) {
---
> if (report_file != 0) {
> if (freopen(report_file, "r", stdin) == 0) {
371c374
< fprintf(stderr, "%s: can't open %s\n", _nc_progname, argv[optind]);
---
> fprintf(stderr, "%s: can't open %s\n", _nc_progname, report_file);
376c379
< _nc_set_source(argv[optind]);
---
> _nc_set_source(report_file);