1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-23 11:18:54 +00:00
get the last edit right
This commit is contained in:
Julian Elischer 1996-01-21 09:07:58 +00:00
parent 3daaa0c3bc
commit b10669ebad
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=13527

View File

@ -2,7 +2,7 @@
/*
* Written by Julian Elischer (julian@DIALix.oz.au)
*
* $Header: /home/ncvs/src/sys/miscfs/devfs/devfs_tree.c,v 1.12 1996/01/02 09:14:44 peter Exp $
* $Header: /home/ncvs/src/sys/miscfs/devfs/devfs_tree.c,v 1.13 1996/01/21 09:03:15 julian Exp $
*/
#include "param.h"
@ -523,14 +523,14 @@ void devfs_remove_dev(void *devnmp)
/*
* Keep removing the next front node till no more exist
*/
while(devnmp->next_front)
while(((devnm_p)devnmp)->next_front)
{
dev_free_name(devnmp->next_front);
dev_free_name(((devnm_p)devnmp)->next_front);
}
/*
* then free the main node
*/
dev_free_name(devnmp);
dev_free_name((devnm_p)devnmp);
return ;
}