Systemd/src/analyze
Topi Miettinen 7ae3561a5a Delete duplicate lines
Found by inspecting results of running this small program:

int main(int argc, const char **argv) {
	for (int i = 1; i < argc; i++) {
		FILE *f;
		char line[1024], prev[1024], *r;
		int lineno;

		prev[0] = '\0';
		lineno = 1;
		f = fopen(argv[i], "r");
		if (!f)
			exit(1);
		do {
			r = fgets(line, sizeof(line), f);
			if (!r)
				break;
			if (strcmp(line, prev) == 0)
				printf("%s:%d: error: dup %s", argv[i], lineno, line);
			lineno++;
			strcpy(prev, line);
		} while (!feof(f));
		fclose(f);
	}
}
2019-01-12 16:02:26 +01:00
..
analyze-security.c Delete duplicate lines 2019-01-12 16:02:26 +01:00
analyze-security.h analyze: add new security verb 2018-11-30 16:48:09 +01:00
analyze-verify.c tree-wide: rename path_join_many() to path_join() 2018-11-30 10:59:47 +01:00
analyze-verify.h Drop my copyright headers 2018-06-14 13:03:20 +02:00
analyze.c meson: generate version tag from git 2018-12-21 13:43:20 +01:00
meson.build analyze: add new security verb 2018-11-30 16:48:09 +01:00