/[monit]/monit/process/common.c
ViewVC logotype

Diff of /monit/process/common.c

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

revision 1.9 by chopp, Wed Aug 13 22:18:43 2003 UTC revision 1.10 by hauk, Fri Aug 15 01:12:56 2003 UTC
# Line 223  int connectchild(ProcessTree_T * parent, Line 223  int connectchild(ProcessTree_T * parent,
223    
224    if ( parent->children != NULL ) {    if ( parent->children != NULL ) {
225    
226      memcpy(tmp, parent->children, sizeof(ProcessTree_T *) * (parent->children_num - 1));      memcpy(tmp, parent->children,
227               sizeof(ProcessTree_T *) * (parent->children_num - 1));
228      free(parent->children);      free(parent->children);
229    
230    }    }
231    
232    parent->children = (struct myprocesstree **) tmp;    parent->children = tmp;
233    parent->children[parent->children_num - 1] = (struct myprocesstree *) child;    parent->children[parent->children_num - 1] = child;
234    
235    return TRUE;    return TRUE;
236    

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

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