/[hurd]/hurd/libstore/kids.c
ViewVC logotype

Diff of /hurd/libstore/kids.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.8 by marcus, Mon Mar 11 00:44:35 2002 UTC revision 1.9 by roland, Wed May 8 09:24:36 2002 UTC
# Line 1  Line 1 
1  /* Managing sub-stores  /* Managing sub-stores
2    
3     Copyright (C) 1995, 1996, 1997, 2001 Free Software Foundation, Inc.     Copyright (C) 1995,96,97,2001,02 Free Software Foundation, Inc.
4     Written by Miles Bader <miles@gnu.ai.mit.edu>     Written by Miles Bader <miles@gnu.org>
5    
6     This file is part of the GNU Hurd.     This file is part of the GNU Hurd.
7    
8     The GNU Hurd is free software; you can redistribute it and/or     The GNU Hurd is free software; you can redistribute it and/or
# Line 28  Line 29 
29  /* Set STORE's current children list to (a copy of) CHILDREN and NUM_CHILDREN.  */  /* Set STORE's current children list to (a copy of) CHILDREN and NUM_CHILDREN.  */
30  error_t  error_t
31  store_set_children (struct store *store,  store_set_children (struct store *store,
32                      struct store *const *children, unsigned num_children)                      struct store *const *children, size_t num_children)
33  {  {
34    unsigned size = num_children * sizeof (struct store_run);    unsigned size = num_children * sizeof (struct store_run);
35    struct store **copy = malloc (size);    struct store **copy = malloc (size);
# Line 174  store_open_children (const char *name, i Line 175  store_open_children (const char *name, i
175      {      {
176        const char *pfx_end = name;        const char *pfx_end = name;
177    
178        while (isalnum (pfx_end))        while (isalnum (*pfx_end))
179          pfx_end++;          pfx_end++;
180    
181        if (*pfx_end++ != ':')        if (*pfx_end++ != ':')

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26