From 6a5004156432b623e17462bebb2df4c282ca5823 Mon Sep 17 00:00:00 2001 From: phk Date: Thu, 6 Mar 2003 06:31:49 +0000 Subject: Don't pick the name out of the devstat member of the ccd softc, it will disappear soon. Exporting the softc in the first place is a mistake. --- sbin/ccdconfig/ccdconfig.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sbin/ccdconfig/ccdconfig.c') diff --git a/sbin/ccdconfig/ccdconfig.c b/sbin/ccdconfig/ccdconfig.c index ae235f6..6d69353 100644 --- a/sbin/ccdconfig/ccdconfig.c +++ b/sbin/ccdconfig/ccdconfig.c @@ -506,8 +506,7 @@ print_ccd_info(struct ccd_s *cs) fflush(stdout); /* Read in the component info. */ - asprintf(&cp, "%s%d", cs->device_stats.device_name, - cs->device_stats.unit_number); + asprintf(&cp, "ccd%d", cs->sc_unit); if (cp == NULL) { printf("\n"); warn("ccd%d: can't allocate memory", -- cgit v1.1