diff options
author | harti <harti@FreeBSD.org> | 2005-05-24 16:05:51 +0000 |
---|---|---|
committer | harti <harti@FreeBSD.org> | 2005-05-24 16:05:51 +0000 |
commit | dd5f450e83a2cf110049be4a3dec342b25032631 (patch) | |
tree | 7377d4a139d673efd4f875e108415e496df43d39 /usr.bin/make/job.c | |
parent | 79613308dce9cef12aa10cea972360bae9c444f3 (diff) | |
download | FreeBSD-src-dd5f450e83a2cf110049be4a3dec342b25032631.zip FreeBSD-src-dd5f450e83a2cf110049be4a3dec342b25032631.tar.gz |
The caller of Var_Value() should not change the variable value. Make
this clear by constifying the return value.
Obtained from: DragonFlyBSD
Diffstat (limited to 'usr.bin/make/job.c')
-rw-r--r-- | usr.bin/make/job.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/make/job.c b/usr.bin/make/job.c index ba877c4..8b467f7 100644 --- a/usr.bin/make/job.c +++ b/usr.bin/make/job.c @@ -2786,7 +2786,7 @@ CompatInterrupt(int signo) interrupted = 0; if (curTarg != NULL && !Targ_Precious(curTarg)) { - char *file = Var_Value(TARGET, curTarg); + const char *file = Var_Value(TARGET, curTarg); if (!noExecute && eunlink(file) != -1) { printf("*** %s removed\n", file); |