From fffca74820a692496ac5f754a9f6960f8da4be05 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 13 Apr 2008 14:35:51 +0000 Subject: Whack code duplication git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9481 e03df62e-2008-0410-955e-edbf42e46eb7 --- win/configure.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'win') diff --git a/win/configure.cpp b/win/configure.cpp index 290b8e7a1..a72a95b73 100644 --- a/win/configure.cpp +++ b/win/configure.cpp @@ -130,10 +130,9 @@ int get_svn_revision(char * buffer, size_t len) FILE * f = fopen("..\\.svn\\entries", "r"); if (f) { - fgets(buf, 1000, f); - fgets(buf, 1000, f); - fgets(buf, 1000, f); - fgets(buf, 1000, f); + for (int q = 0; q < 4; ++q) + fgets(buf, 1000, f); + rev = atoi(buf); sprintf(buffer, "%u", rev); fclose(f); -- cgit v1.2.3