Mercurial > audlegacy-plugins
changeset 1384:1a16893ac05f
Don't use VFS on such low level system stuff.
author | Christian Birchinger <joker@netswarm.net> |
---|---|
date | Fri, 27 Jul 2007 04:01:50 +0200 |
parents | cb12e77655d5 |
children | f3c57bbb54d0 |
files | src/OSS/configure.c |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/OSS/configure.c Fri Jul 27 03:55:35 2007 +0200 +++ b/src/OSS/configure.c Fri Jul 27 04:01:50 2007 +0200 @@ -124,15 +124,15 @@ scan_devices(gchar * type, GtkWidget * option_menu, GtkSignalFunc sigfunc) { GtkWidget *menu, *item; - VFSFile *file; + FILE *file; gchar buffer[256], *temp, *tmp2; gboolean found = FALSE; gint index = 0; menu = gtk_menu_new(); - if ((file = vfs_fopen("file:///dev/sndstat", "r"))) { - while (vfs_fgets(buffer, 255, file)) { + if ((file = fopen("/dev/sndstat", "r"))) { + while (fgets(buffer, 255, file)) { if (found && buffer[0] == '\n') break; if (buffer[strlen(buffer) - 1] == '\n') @@ -162,7 +162,7 @@ found = 1; } - vfs_fclose(file); + fclose(file); } else { item = gtk_menu_item_new_with_label(_("Default"));