Module Name: src Committed By: martin Date: Wed Oct 25 08:50:05 UTC 2017
Modified Files: src/bin/sh: jobs.c Log Message: Use %zu for size_t To generate a diff of this commit: cvs rdiff -u -r1.92 -r1.93 src/bin/sh/jobs.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/bin/sh/jobs.c diff -u src/bin/sh/jobs.c:1.92 src/bin/sh/jobs.c:1.93 --- src/bin/sh/jobs.c:1.92 Wed Oct 25 05:42:56 2017 +++ src/bin/sh/jobs.c Wed Oct 25 08:50:05 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: jobs.c,v 1.92 2017/10/25 05:42:56 kre Exp $ */ +/* $NetBSD: jobs.c,v 1.93 2017/10/25 08:50:05 martin Exp $ */ /*- * Copyright (c) 1991, 1993 @@ -37,7 +37,7 @@ #if 0 static char sccsid[] = "@(#)jobs.c 8.5 (Berkeley) 5/4/95"; #else -__RCSID("$NetBSD: jobs.c,v 1.92 2017/10/25 05:42:56 kre Exp $"); +__RCSID("$NetBSD: jobs.c,v 1.93 2017/10/25 08:50:05 martin Exp $"); #endif #endif /* not lint */ @@ -744,7 +744,7 @@ jobidcmd(int argc, char **argv) jp = getjob(*argptr, 0); if (job) { - out1fmt("%%%jd\n", (size_t)(jp - jobtab + 1)); + out1fmt("%%%zu\n", (size_t)(jp - jobtab + 1)); return 0; } if (pg) {