From 3b3d781e4b74a6cf83faa3eb593f7d66b19b9876 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sun, 21 Nov 1999 04:23:17 +0000 Subject: 1999-11-20 Roland McGrath * dlabel.c (fd_get_device): Check STORE->class->id, not STORE->class. --- ufs-utils/dlabel.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ufs-utils/dlabel.c b/ufs-utils/dlabel.c index a51fc8ec..1bb30bbc 100644 --- a/ufs-utils/dlabel.c +++ b/ufs-utils/dlabel.c @@ -1,8 +1,8 @@ /* Get the disklabel from a device node - Copyright (C) 1996 Free Software Foundation, Inc. + Copyright (C) 1996, 1999 Free Software Foundation, Inc. - Written by Miles Bader + Written by Miles Bader This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as @@ -46,7 +46,7 @@ fd_get_device (int fd, device_t *device) err = store_create (node, 0, 0, &store); if (! err) { - if (store->class != STORAGE_DEVICE + if (store->class->id != STORAGE_DEVICE /* In addition to requiring a device, we also want the *whole* device -- one contiguous run starting at 0. */ || store->num_runs != 1 -- cgit v1.2.3