1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-03-07 17:28:15 +00:00

build: fix typo that breaks non-Linux builds

Commit 9612e4b2 introduced a typo and unused variable that break
non-Linux builds.

* src/util/virfile.c (virFileLoopDeviceAssociate): Fix syntax error.
This commit is contained in:
Eric Blake 2012-07-09 15:21:10 -06:00
parent 6bbbe53bea
commit 56f34e5573
2 changed files with 4 additions and 3 deletions

@ -1 +1 @@
Subproject commit a02ba4bf889fee4622db87f185c3d0af84d74ae7 Subproject commit 48fe477c9008efadab8cf8c0c3240d824c12a8b9

View File

@ -1,7 +1,7 @@
/* /*
* virfile.c: safer file handling * virfile.c: safer file handling
* *
* Copyright (C) 2010-2011 Red Hat, Inc. * Copyright (C) 2010-2012 Red Hat, Inc.
* Copyright (C) 2010 IBM Corporation * Copyright (C) 2010 IBM Corporation
* Copyright (C) 2010 Stefan Berger * Copyright (C) 2010 Stefan Berger
* Copyright (C) 2010 Eric Blake * Copyright (C) 2010 Eric Blake
@ -627,7 +627,8 @@ int virFileLoopDeviceAssociate(const char *file,
virReportSystemError(ENOSYS, virReportSystemError(ENOSYS,
_("Unable to associate file %s with loop device"), _("Unable to associate file %s with loop device"),
file); file);
return -1;m *dev = NULL;
return -1;
} }
#endif /* __linux__ */ #endif /* __linux__ */