Mercurial > audlegacy-plugins
comparison src/OSS/configure.c @ 1383:cb12e77655d5
Give vfs_fopen() an URI.
author | Christian Birchinger <joker@netswarm.net> |
---|---|
date | Fri, 27 Jul 2007 03:55:35 +0200 |
parents | d124034ebea3 |
children | 1a16893ac05f |
comparison
equal
deleted
inserted
replaced
1382:28766475ca0a | 1383:cb12e77655d5 |
---|---|
129 gboolean found = FALSE; | 129 gboolean found = FALSE; |
130 gint index = 0; | 130 gint index = 0; |
131 | 131 |
132 menu = gtk_menu_new(); | 132 menu = gtk_menu_new(); |
133 | 133 |
134 if ((file = vfs_fopen("/dev/sndstat", "r"))) { | 134 if ((file = vfs_fopen("file:///dev/sndstat", "r"))) { |
135 while (vfs_fgets(buffer, 255, file)) { | 135 while (vfs_fgets(buffer, 255, file)) { |
136 if (found && buffer[0] == '\n') | 136 if (found && buffer[0] == '\n') |
137 break; | 137 break; |
138 if (buffer[strlen(buffer) - 1] == '\n') | 138 if (buffer[strlen(buffer) - 1] == '\n') |
139 buffer[strlen(buffer) - 1] = '\0'; | 139 buffer[strlen(buffer) - 1] = '\0'; |