Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/jemalloc/dist/include/jemalloc/internal use c99...



details:   https://anonhg.NetBSD.org/src/rev/a2846be93ba0
branches:  trunk
changeset: 449354:a2846be93ba0
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Mar 04 17:23:10 2019 +0000

description:
use c99 initializers

diffstat:

 external/bsd/jemalloc/dist/include/jemalloc/internal/nstime.h |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r 886835aaf671 -r a2846be93ba0 external/bsd/jemalloc/dist/include/jemalloc/internal/nstime.h
--- a/external/bsd/jemalloc/dist/include/jemalloc/internal/nstime.h     Mon Mar 04 17:21:31 2019 +0000
+++ b/external/bsd/jemalloc/dist/include/jemalloc/internal/nstime.h     Mon Mar 04 17:23:10 2019 +0000
@@ -3,12 +3,13 @@
 
 /* Maximum supported number of seconds (~584 years). */
 #define NSTIME_SEC_MAX KQU(18446744072)
-#define NSTIME_ZERO_INITIALIZER {0}
+#define NSTIME_INITIALIZER { .ns = 0 }
 
 typedef struct {
        uint64_t ns;
 } nstime_t;
 
+
 void nstime_init(nstime_t *time, uint64_t ns);
 void nstime_init2(nstime_t *time, uint64_t sec, uint64_t nsec);
 uint64_t nstime_ns(const nstime_t *time);



Home | Main Index | Thread Index | Old Index