From fd8c3ec28d9f721e15ee89de412ad565f94e79d3 Mon Sep 17 00:00:00 2001 From: Fritz Elfert Date: Tue, 6 Mar 2001 17:13:01 +0000 Subject: KPsion: added format stuff. --- plpnfsd/main.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'plpnfsd') diff --git a/plpnfsd/main.cc b/plpnfsd/main.cc index 89010fe..508649f 100644 --- a/plpnfsd/main.cc +++ b/plpnfsd/main.cc @@ -406,11 +406,10 @@ long rfsv_getattr(const char *name, long *attr, long *size, long *time) { long rfsv_statdev(char letter) { PlpDrive drive; - u_int32_t devnum = letter - 'A'; if (!a) return -1; - return (a->devinfo(devnum, drive) != rfsv::E_PSI_GEN_NONE); + return (a->devinfo(letter, drive) != rfsv::E_PSI_GEN_NONE); } long rfsv_rename(const char *oldname, const char *newname) { @@ -433,7 +432,7 @@ long rfsv_drivelist(int *cnt, device **dlist) { PlpDrive drive; if ((devbits & 1) && - ((a->devinfo(i, drive) == rfsv::E_PSI_GEN_NONE))) { + ((a->devinfo(i + 'A', drive) == rfsv::E_PSI_GEN_NONE))) { device *next = *dlist; *dlist = (device *)malloc(sizeof(device)); -- cgit v1.2.3