From 1451665d5b2e1c375af55aad70849bf5642bfa60 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Mon, 30 Nov 2020 23:53:39 +0100 Subject: hurd_types: Add const_string_t type This will allow to relieve constraints in callers, e.g. dir_lookup("") would otherwise produce a warning with gcc-11 since char[1024] would mean that dir_lookup would read all 1024 characters while it is not. * hurd/hurd_types.h (const_string_t): New type. --- libports/complete-deallocate.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libports/complete-deallocate.c') diff --git a/libports/complete-deallocate.c b/libports/complete-deallocate.c index 5c548a37..fccd59e4 100644 --- a/libports/complete-deallocate.c +++ b/libports/complete-deallocate.c @@ -38,6 +38,7 @@ _ports_complete_deallocate (struct port_info *pi) /* A reference was reacquired through a hash table lookup. It's fine, we didn't touch anything yet. */ /* XXX: This really shouldn't happen. */ + /* XXX: this did happen... */ assert_backtrace (! "reacquired reference w/o send rights"); pthread_rwlock_unlock (&_ports_htable_lock); return; -- cgit v1.2.3