Module Name:    src
Committed By:   riastradh
Date:           Mon Feb 29 16:14:57 UTC 2016

Modified Files:
        src/external/cddl/osnet/dist/lib/libuutil/common: uu_open.c

Log Message:
Cast int64_t to long long before printfing with %lld.

Not doing so broke something months ago and I forgot why.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 \
    src/external/cddl/osnet/dist/lib/libuutil/common/uu_open.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/cddl/osnet/dist/lib/libuutil/common/uu_open.c
diff -u src/external/cddl/osnet/dist/lib/libuutil/common/uu_open.c:1.1.1.1 src/external/cddl/osnet/dist/lib/libuutil/common/uu_open.c:1.2
--- src/external/cddl/osnet/dist/lib/libuutil/common/uu_open.c:1.1.1.1	Fri Aug  7 18:32:35 2009
+++ src/external/cddl/osnet/dist/lib/libuutil/common/uu_open.c	Mon Feb 29 16:14:57 2016
@@ -53,7 +53,8 @@ uu_open_tmp(const char *dir, uint_t ufla
 		return (-1);
 
 	for (;;) {
-		(void) snprintf(fname, PATH_MAX, "%s/uu%lld", dir, gethrtime());
+		(void) snprintf(fname, PATH_MAX, "%s/uu%lld", dir,
+		    (long long)gethrtime());
 
 		f = open(fname, O_CREAT | O_EXCL | O_RDWR, 0600);
 

Reply via email to