Print this page
10076 make usr/src/test smatch clean

Split Close
Expand all
Collapse all
          --- old/usr/src/test/os-tests/tests/i386/badseg.c
          +++ new/usr/src/test/os-tests/tests/i386/badseg.c
↓ open down ↓ 60 lines elided ↑ open up ↑
  61   61  
  62   62          int rc = getcontext(&ucp);
  63   63          if (done) {
  64   64                  (void) getcontext(&ucp);
  65   65                  return;
  66   66          }
  67   67  
  68   68          if (rc == 0) {
  69   69                  done = 1;
  70   70                  ucp.uc_mcontext.gregs[seg] = selector;
  71      -                setcontext(&ucp);
       71 +                (void) setcontext(&ucp);
  72   72          }
  73   73          abort();
  74   74  }
  75   75  
  76   76  static void
  77   77  resetcs(void)
  78   78  {
  79   79          return (resetseg(CS));
  80   80  }
  81   81  
↓ open down ↓ 67 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX