[Bug 862] includefile nesting; preserve phonelist on reconfig.
ntp_scanner.h:
[Bug 862] includefile nesting.
bk: 467a78cfBaUZRMVAw2a8wC6mLDCUqg
+* [Bug 862] includefile nesting; preserve phonelist on reconfig.
* Allow null driftfile.
* More leap second fixes from Dave Mills.
* Use YYERROR_VERBOSE for the new parser, and fix related BUILT_SOURCES.
*/
int curr_include_level; /* The current include level */
-struct FILE_INFO *fp[MAXINCLUDELEVEL];
+struct FILE_INFO *fp[MAXINCLUDELEVEL+1];
FILE *res_fp;
struct config_tree my_config; /* Root of the configuration tree */
short default_ai_family = AF_UNSPEC; /* Default either IPv4 or IPv6 */
}
free_node(s);
}
- sys_phone[i] = NULL;
+ if (i)
+ sys_phone[i] = NULL;
}
static void
extern short default_ai_family;
extern int old_config_style;
extern int input_from_file;
-extern struct FILE_INFO *fp[MAXINCLUDELEVEL];
+extern struct FILE_INFO *fp[];
/* VARIOUS SUBROUTINE DECLARATIONS
* -------------------------------