diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-04-13 14:35:51 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-04-13 14:35:51 +0000 |
commit | fffca74820a692496ac5f754a9f6960f8da4be05 (patch) | |
tree | 889bc61643a32b8e8965fe84f498266a65b055bc /win | |
parent | a6d662108a1fef29cca206f6887c52a9959a5a45 (diff) |
Whack code duplication
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9481 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'win')
-rw-r--r-- | win/configure.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
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); |