summaryrefslogtreecommitdiff
path: root/libstore
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-05-08 09:24:36 +0000
committerRoland McGrath <roland@gnu.org>2002-05-08 09:24:36 +0000
commit0d66bfda75e78288bf37b8c8fe4ca68bf6127bee (patch)
tree02d2ca95667c649ac8852270d0b39364032cc88b /libstore
parent2af02c352da63d9cfd84e80b75c39c13e7116c25 (diff)
2002-05-07 Roland McGrath <roland@frob.com>
* kids.c (store_open_children): Dereference pointer in isalnum call. * set.c (store_set_runs): Fix argument type. * kids.c (store_set_children): Likewise.
Diffstat (limited to 'libstore')
-rw-r--r--libstore/kids.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/libstore/kids.c b/libstore/kids.c
index ceb80133..2bacfc4d 100644
--- a/libstore/kids.c
+++ b/libstore/kids.c
@@ -1,7 +1,8 @@
/* Managing sub-stores
- Copyright (C) 1995, 1996, 1997, 2001 Free Software Foundation, Inc.
- Written by Miles Bader <miles@gnu.ai.mit.edu>
+ Copyright (C) 1995,96,97,2001,02 Free Software Foundation, Inc.
+ Written by Miles Bader <miles@gnu.org>
+
This file is part of the GNU Hurd.
The GNU Hurd is free software; you can redistribute it and/or
@@ -28,7 +29,7 @@
/* Set STORE's current children list to (a copy of) CHILDREN and NUM_CHILDREN. */
error_t
store_set_children (struct store *store,
- struct store *const *children, unsigned num_children)
+ struct store *const *children, size_t num_children)
{
unsigned size = num_children * sizeof (struct store_run);
struct store **copy = malloc (size);
@@ -174,7 +175,7 @@ store_open_children (const char *name, int flags,
{
const char *pfx_end = name;
- while (isalnum (pfx_end))
+ while (isalnum (*pfx_end))
pfx_end++;
if (*pfx_end++ != ':')