Skip to content
  • Blue Swirl's avatar
    Fix OpenBSD build warning · d7d9b528
    Blue Swirl authored
    
    
    Fix this warning:
      CC    savevm.o
    /src/qemu/savevm.c: In function `do_savevm':
    /src/qemu/savevm.c:1900: warning: passing arg 1 of `localtime_r' from incompatible pointer type
    
    It looks like on OpenBSD the type of tv_sec in struct timeval is still
    'long' instead of time_t as in most other OS. Fix by adding a cast.
    
    Signed-off-by: default avatarBlue Swirl <blauwirbel@gmail.com>
    d7d9b528