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

Submodule .gnulib updated: a02ba4bf88...48fe477c90

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__ */