1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-10 05:18:36 +03:00

Fix /proc/devices parsing.

This commit is contained in:
Alasdair Kergon 2005-01-07 15:39:53 +00:00
parent 8b170dc2bf
commit f4ad6e2157
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,6 @@
Version 1.00.21 - Version 1.00.21 -
============================ ============================
Fix /proc/devices parsing.
Version 1.00.20 - 6 Jan 2005 Version 1.00.20 - 6 Jan 2005
============================ ============================

View File

@ -134,8 +134,7 @@ static int _get_proc_number(const char *file, const char *name,
fclose(fl); fclose(fl);
return 1; return 1;
} }
} } else do {
do {
c = fgetc(fl); c = fgetc(fl);
} while (c != EOF && c != '\n'); } while (c != EOF && c != '\n');
} }