[BACK]Return to init_main.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / kern

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/kern/init_main.c between version 1.353.2.3 and 1.353.2.4

version 1.353.2.3, 2009/06/20 07:20:31 version 1.353.2.4, 2009/07/18 14:53:22
Line 693  main(void)
Line 693  main(void)
 static void  static void
 check_console(struct lwp *l)  check_console(struct lwp *l)
 {  {
         struct nameidata nd;          struct vnode *vp;
         int error;          int error;
   
         NDINIT(&nd, LOOKUP, FOLLOW, UIO_SYSSPACE, "/dev/console");          error = namei_simple_kernel("/dev/console",
         error = namei(&nd);                                  NSM_FOLLOW_NOEMULROOT, &vp);
         if (error == 0)          if (error == 0)
                 vrele(nd.ni_vp);                  vrele(vp);
         else if (error == ENOENT)          else if (error == ENOENT)
                 printf("warning: no /dev/console\n");                  printf("warning: no /dev/console\n");
         else          else

Legend:
Removed from v.1.353.2.3  
changed lines
  Added in v.1.353.2.4

CVSweb <webmaster@jp.NetBSD.org>