ConfCmp.c (6de2a2e8a5ecc812a85e5933d42ce57fecd9a922) | ConfCmp.c (d397408818fbfa179246fb327659e3fb29ffff31) |
---|---|
1/*- 2 * Copyright (c) 2002 Poul-Henning Kamp 3 * Copyright (c) 2002 Networks Associates Technology, Inc. 4 * All rights reserved. 5 * 6 * This software was developed for the FreeBSD Project by Poul-Henning Kamp 7 * and NAI Labs, the Security Research Division of Network Associates, Inc. 8 * under DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part of the --- 294 unchanged lines hidden (view full) --- 303main(int argc, char **argv) 304{ 305 struct mytree *t1, *t2; 306 int i; 307 308 setbuf(stdout, NULL); 309 setbuf(stderr, NULL); 310 if (argc != 3) | 1/*- 2 * Copyright (c) 2002 Poul-Henning Kamp 3 * Copyright (c) 2002 Networks Associates Technology, Inc. 4 * All rights reserved. 5 * 6 * This software was developed for the FreeBSD Project by Poul-Henning Kamp 7 * and NAI Labs, the Security Research Division of Network Associates, Inc. 8 * under DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part of the --- 294 unchanged lines hidden (view full) --- 303main(int argc, char **argv) 304{ 305 struct mytree *t1, *t2; 306 int i; 307 308 setbuf(stdout, NULL); 309 setbuf(stderr, NULL); 310 if (argc != 3) |
311 errx(1, "Usage: %s file1 file2", argv[0]); | 311 errx(1, "usage: %s file1 file2", argv[0]); |
312 313 t1 = dofile(argv[1]); 314 if (t1 == NULL) 315 errx(2, "XML parser error on file %s", argv[1]); 316 sort_node(t1->top); 317 t2 = dofile(argv[2]); 318 if (t2 == NULL) 319 errx(2, "XML parser error on file %s", argv[2]); 320 sort_node(t2->top); 321 i = compare_node(t1->top, t2->top, 0); 322 return (i); 323} 324 | 312 313 t1 = dofile(argv[1]); 314 if (t1 == NULL) 315 errx(2, "XML parser error on file %s", argv[1]); 316 sort_node(t1->top); 317 t2 = dofile(argv[2]); 318 if (t2 == NULL) 319 errx(2, "XML parser error on file %s", argv[2]); 320 sort_node(t2->top); 321 i = compare_node(t1->top, t2->top, 0); 322 return (i); 323} 324 |