Skip to content
Snippets Groups Projects
Commit 26d56f48 authored by Gerd Hoffmann's avatar Gerd Hoffmann
Browse files

usb: fix u2f build


Just use qemu_open_old() for a quick fix, switch
to better error handling left for another day.

Fixes: 448058aa ("util: rename qemu_open() to qemu_open_old()")
Cc: César Belley <cesar.belley@lse.epita.fr>
Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
Reviewed-by: default avatarDaniel P. Berrangé <berrange@redhat.com>
Message-id: 20200918110122.9121-1-kraxel@redhat.com
parent 053a4177
No related branches found
No related tags found
No related merge requests found
......@@ -200,7 +200,7 @@ static ssize_t u2f_emulated_read(const char *path, char *buffer,
int fd;
ssize_t ret;
fd = qemu_open(path, O_RDONLY);
fd = qemu_open_old(path, O_RDONLY);
if (fd < 0) {
return -1;
}
......@@ -217,7 +217,7 @@ static bool u2f_emulated_setup_counter(const char *path,
int fd, ret;
FILE *fp;
fd = qemu_open(path, O_RDWR);
fd = qemu_open_old(path, O_RDWR);
if (fd < 0) {
return false;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment