From e4c475f6dfc6f5eb49c741394b2b0516b6b0321d Mon Sep 17 00:00:00 2001 From: Kalle Olavi Niemitalo Date: Tue, 17 Jul 2007 14:38:43 +0300 Subject: [PATCH] proxy: Ignore files created via Makefile. gen.c wrote "%d.txt" files, but adding "*.txt" to .gitignore might cause future documentation to be ignored. Rename to "%d.http". --- contrib/proxy/.gitignore | 3 +++ contrib/proxy/gen.c | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 contrib/proxy/.gitignore diff --git a/contrib/proxy/.gitignore b/contrib/proxy/.gitignore new file mode 100644 index 00000000..828fea7e --- /dev/null +++ b/contrib/proxy/.gitignore @@ -0,0 +1,3 @@ +gen +proxy.py +*.http diff --git a/contrib/proxy/gen.c b/contrib/proxy/gen.c index 1190079b..59d1b2b1 100644 --- a/contrib/proxy/gen.c +++ b/contrib/proxy/gen.c @@ -121,10 +121,10 @@ dicts(FILE *f) fprintf(f, "slownik = {\n"); for (i = 0; i < counter - 1; i++) { - fprintf(f, "\t'http://%s%s' : '%d.txt',\n", tab[i].host, tab[i].string, i); + fprintf(f, "\t'http://%s%s' : '%d.http',\n", tab[i].host, tab[i].string, i); } for (; i < counter; i++) { - fprintf(f, "\t'http://%s%s' : '%d.txt'\n", tab[i].host, tab[i].string, i); + fprintf(f, "\t'http://%s%s' : '%d.http'\n", tab[i].host, tab[i].string, i); } fprintf(f, "}\n\n"); } @@ -138,7 +138,7 @@ save(void) for (i = 0; i < counter; i++) { char buf[12]; - snprintf(buf, 12, "%d.txt", i); + snprintf(buf, 12, "%d.http", i); f = fopen(buf, "w"); if (!f) return;