]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/netbsd-tests/usr.bin/xlint/lint1/d_c99_compound_literal_comma.c
MFV r356143:
[FreeBSD/FreeBSD.git] / contrib / netbsd-tests / usr.bin / xlint / lint1 / d_c99_compound_literal_comma.c
1 struct bintime {
2         unsigned long long sec;
3         unsigned long long frac;
4 };
5
6 struct bintime
7 us2bintime(unsigned long long us)
8 {
9
10         return (struct bintime) {
11                 .sec = us / 1000000U,
12                 .frac = (((us % 1000000U) >> 32)/1000000U) >> 32,
13         };
14 }