From: Robert W. <ro...@us...> - 2005-12-22 20:42:19
|
Update of /cvsroot/ltp/ltp/testcases/kernel/syscalls/gethostid In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16248 Modified Files: gethostid01.c Log Message: Added one line to make sure that if 'hostid' includes fffffff, then we don't do anything. Index: gethostid01.c =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/gethostid/gethostid01.c,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** gethostid01.c 10 Oct 2005 14:43:55 -0000 1.9 --- gethostid01.c 22 Dec 2005 20:42:02 -0000 1.10 *************** *** 210,214 **** --- 210,217 ---- } + /* This code handles situations where ffffffff is appended */ bit_64= (0 == strncmp(hostid, hex_64, 8)) ? 1 : 0; + bit_64= (0 == strncmp(name, hex_64, 8)) ? 0 : 1; + //printf("bit_64=%d\n", bit_64); |