Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 124260
Collapse All | Expand All

(-)cvs-1.12.12/lib/openat.c (-3 / +7 lines)
Lines 55-63 rpl_openat (int fd, char const *filename Link Here
55
      va_list arg;
55
      va_list arg;
56
      va_start (arg, flags);
56
      va_start (arg, flags);
57
57
58
      /* Assume that mode_t is passed compatibly with mode_t's type
58
      /* If mode_t is narrower than int, use the promoted type (int),
59
	 after argument promotion.  */
59
         not mode_t.  Use sizeof to guess whether mode_t is nerrower;
60
      mode = va_arg (arg, mode_t);
60
         we don't know of any practical counterexamples.  */
61
      if (sizeof (mode_t) < sizeof (int))
62
	mode = va_arg (arg, int);
63
      else
64
	mode = va_arg (arg, mode_t);
61
65
62
      va_end (arg);
66
      va_end (arg);
63
    }
67
    }

Return to bug 124260