utils: removed myFgets()

Replaced myFgets() with fgets() + g_strchomp().
This commit is contained in:
Max Kellermann
2008-12-28 19:54:49 +01:00
parent 2598cdd868
commit 859aac7242
10 changed files with 38 additions and 32 deletions
+3 -1
View File
@@ -522,9 +522,11 @@ void read_sw_volume_state(FILE *fp)
if (volume_mixerType != VOLUME_MIXER_TYPE_SOFTWARE)
return;
while (myFgets(buf, sizeof(buf), fp)) {
while (fgets(buf, sizeof(buf), fp)) {
if (!g_str_has_prefix(buf, SW_VOLUME_STATE))
continue;
g_strchomp(buf);
sv = strtol(buf + strlen(SW_VOLUME_STATE), &end, 10);
if (G_LIKELY(!*end))
changeSoftwareVolume(sv, 0);