[Linux-decnet-commit] CVS: dnprogs/dnroute get_neigh.c,1.3,1.4
Brought to you by:
chrissie_c,
ph3-der-loewe
From: Patrick C. <pa...@us...> - 2003-05-05 08:29:10
|
Update of /cvsroot/linux-decnet/dnprogs/dnroute In directory sc8-pr-cvs1:/tmp/cvs-serv7873 Modified Files: get_neigh.c Log Message: get rid of C++ism (how did this ever compile?? Index: get_neigh.c =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/dnroute/get_neigh.c,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** get_neigh.c 4 May 2003 12:48:10 -0000 1.3 --- get_neigh.c 5 May 2003 08:29:06 -0000 1.4 *************** *** 242,245 **** --- 242,247 ---- { pid_t pid; + int devnull; + switch ( pid=fork() ) { *************** *** 257,261 **** // Detach ourself from the calling environment ! int devnull = open("/dev/null", O_RDWR); close(0); close(1); --- 259,263 ---- // Detach ourself from the calling environment ! devnull = open("/dev/null", O_RDWR); close(0); close(1); |