From b2867a68b9f94402e2afba49de978d9e8f9abaeb Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Thu, 23 Jun 2016 16:56:41 +0200 Subject: Handle up to 63 partitions per drive Revamp device parsing code. Introducing support for more partitions into the shilka-generated parser has the unfortunate side-effect of raising the size of the DLL by almost 2 Megs. Therefore we split out the handling for /dev/sdXY devices into a tiny bit of hand-written code. While at it, remove some unused cruft from devices.* and generally clean up the device class to provide access methods instead of direct access to members. Signed-off-by: Corinna Vinschen --- winsup/cygwin/fhandler_process.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'winsup/cygwin/fhandler_process.cc') diff --git a/winsup/cygwin/fhandler_process.cc b/winsup/cygwin/fhandler_process.cc index 064f7f9fd..7efbc1f9c 100644 --- a/winsup/cygwin/fhandler_process.cc +++ b/winsup/cygwin/fhandler_process.cc @@ -461,8 +461,8 @@ format_process_ctty (void *data, char *&destbuf) } device d; d.parse (p->ctty); - destbuf = (char *) crealloc_abort (destbuf, strlen (d.name) + 2); - return __small_sprintf (destbuf, "%s\n", d.name); + destbuf = (char *) crealloc_abort (destbuf, strlen (d.name ()) + 2); + return __small_sprintf (destbuf, "%s\n", d.name ()); } static off_t -- cgit v1.2.3