Skip to content

Commit 735ba3a

Browse files
author
Yuri Pankov
authored
Use uint64_t instead of u_int64_t
Reviewed-by: Alexander Motin <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Yuri Pankov <[email protected]> Closes #15610
1 parent a03ebd9 commit 735ba3a

File tree

2 files changed

+2
-4
lines changed
  • include/os/freebsd/spl/sys
  • lib/libspl/include/sys

2 files changed

+2
-4
lines changed

include/os/freebsd/spl/sys/time.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2323
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2424
* SUCH DAMAGE.
25-
*
26-
* $FreeBSD$
2725
*/
2826

2927
#ifndef _OPENSOLARIS_SYS_TIME_H_
@@ -91,6 +89,6 @@ gethrtime(void)
9189
{
9290
struct timespec ts;
9391
clock_gettime(CLOCK_UPTIME, &ts);
94-
return (((u_int64_t)ts.tv_sec) * NANOSEC + ts.tv_nsec);
92+
return (((uint64_t)ts.tv_sec) * NANOSEC + ts.tv_nsec);
9593
}
9694
#endif /* !_OPENSOLARIS_SYS_TIME_H_ */

lib/libspl/include/sys/time.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ gethrtime(void)
101101
{
102102
struct timespec ts;
103103
(void) clock_gettime(CLOCK_MONOTONIC, &ts);
104-
return ((((u_int64_t)ts.tv_sec) * NANOSEC) + ts.tv_nsec);
104+
return ((((uint64_t)ts.tv_sec) * NANOSEC) + ts.tv_nsec);
105105
}
106106

107107
#endif /* _LIBSPL_SYS_TIME_H */

0 commit comments

Comments
 (0)