Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

In usr.sbin/rpc.ypupdated/yp_dbupdate.c, since intmax_t is signed, just

like time_t, better use %jd instead of %ju.  Strangely enough, neither
gcc, clang nor gcc 4.6 warn about this discrepancy...

MFC after:	1 week
  • Loading branch information...
commit b4c23c9d58f388f0e6ead42e607e5d3820b801a0 1 parent 9063e1e
authored December 18, 2011

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  usr.sbin/rpc.ypupdated/yp_dbupdate.c
2  usr.sbin/rpc.ypupdated/yp_dbupdate.c
@@ -131,7 +131,7 @@ ypmap_update(char *netname, char *map, unsigned int op, unsigned int keylen,
131 131
 		return(rval);
132 132
 	}
133 133
 
134  
-	snprintf(yplastbuf, sizeof(yplastbuf), "%ju", (intmax_t)time(NULL));
  134
+	snprintf(yplastbuf, sizeof(yplastbuf), "%jd", (intmax_t)time(NULL));
135 135
 	key.data = yp_last;
136 136
 	key.size = strlen(yp_last);
137 137
 	data.data = (char *)&yplastbuf;

0 notes on commit b4c23c9

Please sign in to comment.
Something went wrong with that request. Please try again.