1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-28 11:55:55 +03:00

minor cleanup

This commit is contained in:
Heinz Mauelshagen 2005-04-29 10:58:34 +00:00
parent 871e7fcd1a
commit b0e25eef22

View File

@ -102,9 +102,11 @@ int main(int argc, char **argv)
if (list) {
do {
ret = dm_get_next_registered_device(&dso_name, &device, &events);
if (!ret) {
printf("%s %s 0x%x\n", dso_name, device, events);
if (!(ret= dm_get_next_registered_device(&dso_name,
&device,
&events))) {
printf("%s %s 0x%x\n",
dso_name, device, events);
free(dso_name);
free(device);
}
@ -112,6 +114,7 @@ int main(int argc, char **argv)
exit(EXIT_SUCCESS);
}
if ((ret = reg ? dm_register_for_event(dso_name, device, events) :
dm_unregister_for_event(dso_name, device, events))) {
fprintf(stderr, "Failed to %sregister %s: %s\n",