diff options
| author | sjg <sjg@NetBSD.org> | 2012-08-31 07:00:36 +0000 |
|---|---|---|
| committer | sjg <sjg@NetBSD.org> | 2012-08-31 07:00:36 +0000 |
| commit | 3f395b64b2e2e6b590696d773c7969508317ef45 (patch) | |
| tree | 06f99da126eab90478b15f94b4f98b116b6339a5 /usr.bin/make | |
| parent | 38743699de4a5ebb0238128ecf205470d9e91ad3 (diff) | |
Cast sizeof() to int, which is sufficent and consistent with other use
within make.
Diffstat (limited to 'usr.bin/make')
| -rw-r--r-- | usr.bin/make/main.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/make/main.c b/usr.bin/make/main.c index cf1aefa06f1..c464dd0a77b 100644 --- a/usr.bin/make/main.c +++ b/usr.bin/make/main.c @@ -1,4 +1,4 @@ -/* $NetBSD: main.c,v 1.202 2012/08/31 02:59:37 pgoyette Exp $ */ +/* $NetBSD: main.c,v 1.203 2012/08/31 07:00:36 sjg Exp $ */ /* * Copyright (c) 1988, 1989, 1990, 1993 @@ -69,7 +69,7 @@ */ #ifndef MAKE_NATIVE -static char rcsid[] = "$NetBSD: main.c,v 1.202 2012/08/31 02:59:37 pgoyette Exp $"; +static char rcsid[] = "$NetBSD: main.c,v 1.203 2012/08/31 07:00:36 sjg Exp $"; #else #include <sys/cdefs.h> #ifndef lint @@ -81,7 +81,7 @@ __COPYRIGHT("@(#) Copyright (c) 1988, 1989, 1990, 1993\ #if 0 static char sccsid[] = "@(#)main.c 8.3 (Berkeley) 3/19/94"; #else -__RCSID("$NetBSD: main.c,v 1.202 2012/08/31 02:59:37 pgoyette Exp $"); +__RCSID("$NetBSD: main.c,v 1.203 2012/08/31 07:00:36 sjg Exp $"); #endif #endif /* not lint */ #endif @@ -1235,7 +1235,7 @@ main(int argc, char **argv) } else if (expandVars) { char tmp[128]; - if (snprintf(tmp, sizeof(tmp), "${%s}", var) >= (ssize_t)(sizeof(tmp))) + if (snprintf(tmp, sizeof(tmp), "${%s}", var) >= (int)(sizeof(tmp))) Fatal("%s: variable name too big: %s", progname, var); value = p1 = Var_Subst(NULL, tmp, VAR_GLOBAL, 0); @@ -2051,7 +2051,7 @@ getBoolean(const char *name, Boolean bf) char tmp[64]; char *cp; - if (snprintf(tmp, sizeof(tmp), "${%s:tl}", name) < (ssize_t)(sizeof(tmp))) { + if (snprintf(tmp, sizeof(tmp), "${%s:tl}", name) < (int)(sizeof(tmp))) { cp = Var_Subst(NULL, tmp, VAR_GLOBAL, 0); if (cp) { |
