summaryrefslogtreecommitdiff
path: root/libstore/set.c
diff options
context:
space:
mode:
authorMarcus Brinkmann <marcus@gnu.org>2001-05-06 13:18:29 +0000
committerMarcus Brinkmann <marcus@gnu.org>2001-05-06 13:18:29 +0000
commit4b4f61e2b0cf3a2db99d67456e8fe34ebabbb282 (patch)
treeb48a1a614b4a80a3c4a2c95c6bdf8fb2d5106d10 /libstore/set.c
parentc18e8c1bcf2d19d6dcbc9501405890c346738c6d (diff)
libstore/
2001-04-26 Marcus Brinkmann <marcus@ulysses.dhis.net> * set.c: Use explicit comparison to MACH_PORT_NULL. storeio/ 2001-05-06 Marcus Brinkmann <marcus@gnu.org> * 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 <marcus@gnu.org> * 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
Diffstat (limited to 'libstore/set.c')
-rw-r--r--libstore/set.c2
1 files changed, 1 insertions, 1 deletions
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;