patch-lib_krb5_test_rfc3961_c 1017 B

123456789101112131415161718192021222324252627282930
  1. $OpenBSD: patch-lib_krb5_test_rfc3961_c,v 1.1 2014/07/13 14:10:14 ajacoutot Exp $
  2. %ld / (long)tv_sec -> %lld / (long long)tv_sec
  3. --- lib/krb5/test_rfc3961.c.orig Sun Dec 9 23:06:44 2012
  4. +++ lib/krb5/test_rfc3961.c Thu Apr 24 14:11:12 2014
  5. @@ -77,9 +77,9 @@ time_encryption(krb5_context context, size_t size,
  6. timevalsub(&tv2, &tv1);
  7. - printf("%s size: %7lu iterations: %d time: %3ld.%06ld\n",
  8. + printf("%s size: %7lu iterations: %d time: %3lld.%06ld\n",
  9. etype_name, (unsigned long)size, iterations,
  10. - (long)tv2.tv_sec, (long)tv2.tv_usec);
  11. + (long long)tv2.tv_sec, tv2.tv_usec);
  12. free(buf);
  13. free(etype_name);
  14. @@ -122,8 +122,8 @@ time_s2k(krb5_context context,
  15. timevalsub(&tv2, &tv1);
  16. - printf("%s string2key %d iterations time: %3ld.%06ld\n",
  17. - etype_name, iterations, (long)tv2.tv_sec, (long)tv2.tv_usec);
  18. + printf("%s string2key %d iterations time: %3lld.%06ld\n",
  19. + etype_name, iterations, (long long)tv2.tv_sec, tv2.tv_usec);
  20. free(etype_name);
  21. }