Skip to content

Commit

Permalink
Use uint64_t instead of u_int64_t
Browse files Browse the repository at this point in the history
Reviewed-by: Alexander Motin <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Yuri Pankov <[email protected]>
Closes openzfs#15610
  • Loading branch information
Yuri Pankov authored and lundman committed Dec 12, 2023
1 parent 299793c commit 9facc41
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions include/os/freebsd/spl/sys/time.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $FreeBSD$
*/

#ifndef _OPENSOLARIS_SYS_TIME_H_
Expand Down Expand Up @@ -91,6 +89,6 @@ gethrtime(void)
{
struct timespec ts;
clock_gettime(CLOCK_UPTIME, &ts);
return (((u_int64_t)ts.tv_sec) * NANOSEC + ts.tv_nsec);
return (((uint64_t)ts.tv_sec) * NANOSEC + ts.tv_nsec);
}
#endif /* !_OPENSOLARIS_SYS_TIME_H_ */
2 changes: 1 addition & 1 deletion lib/libspl/include/sys/time.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ gethrtime(void)
{
struct timespec ts;
(void) clock_gettime(CLOCK_MONOTONIC, &ts);
return ((((u_int64_t)ts.tv_sec) * NANOSEC) + ts.tv_nsec);
return ((((uint64_t)ts.tv_sec) * NANOSEC) + ts.tv_nsec);
}

#endif /* _LIBSPL_SYS_TIME_H */

0 comments on commit 9facc41

Please sign in to comment.