mirror of
https://github.com/opnsense/src.git
synced 2026-06-06 23:32:52 -04:00
Use uint64_t instead of u_int64_t
Reviewed-by: Alexander Motin <mav@FreeBSD.org> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Yuri Pankov <ypankov@tintri.com> Closes #15610
This commit is contained in:
parent
a03ebd9bee
commit
735ba3a7b7
2 changed files with 2 additions and 4 deletions
|
|
@ -22,8 +22,6 @@
|
||||||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
* 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
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
|
||||||
* $FreeBSD$
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _OPENSOLARIS_SYS_TIME_H_
|
#ifndef _OPENSOLARIS_SYS_TIME_H_
|
||||||
|
|
@ -91,6 +89,6 @@ gethrtime(void)
|
||||||
{
|
{
|
||||||
struct timespec ts;
|
struct timespec ts;
|
||||||
clock_gettime(CLOCK_UPTIME, &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_ */
|
#endif /* !_OPENSOLARIS_SYS_TIME_H_ */
|
||||||
|
|
|
||||||
|
|
@ -101,7 +101,7 @@ gethrtime(void)
|
||||||
{
|
{
|
||||||
struct timespec ts;
|
struct timespec ts;
|
||||||
(void) clock_gettime(CLOCK_MONOTONIC, &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 */
|
#endif /* _LIBSPL_SYS_TIME_H */
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue