From 4b4f61e2b0cf3a2db99d67456e8fe34ebabbb282 Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Sun, 6 May 2001 13:18:29 +0000 Subject: libstore/ 2001-04-26 Marcus Brinkmann * set.c: Use explicit comparison to MACH_PORT_NULL. storeio/ 2001-05-06 Marcus Brinkmann * dev.c (dev_open): Do not create/open the store with STORE_INACTIVE, as this doesn't work correctly. Inactivate the store afterwards instead. 2001-02-18 Marcus Brinkmann * dev.h (struct dev): New member nperopens. * storeio.c (open_hook): Hold device lock and check if this is the TODO: add item about the storeio hack --- libstore/set.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libstore/set.c') diff --git a/libstore/set.c b/libstore/set.c index ab9747ff..26a26075 100644 --- a/libstore/set.c +++ b/libstore/set.c @@ -69,7 +69,7 @@ store_set_name (struct store *store, const char *name) source from which it was created. */ void store_close_source (struct store *store) { - if (store->source) + if (store->source != MACH_PORT_NULL) { mach_port_deallocate (mach_task_self (), store->source); store->source = MACH_PORT_NULL; -- cgit v1.2.3