scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

commit 0589cb355a5c40f61662f4c4925c46577b23db4a
parent 832a9103963629630add315c5a098b0db3d7e5d8
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Sun, 28 Jun 2020 19:30:45 +0200

driver/posix: Remove unneeded goto

Diffstat:
Msrc/cmd/cc/posix/cc.c | 5+----
1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/cmd/cc/posix/cc.c b/src/cmd/cc/posix/cc.c @@ -108,7 +108,7 @@ path(char *s) len = strlen(arg); if (len + cnt >= FILENAME_MAX) - goto too_long; + die("cc: pathname too long"); memcpy(buff+cnt, arg, len); cnt += len; } @@ -117,9 +117,6 @@ path(char *s) buff[cnt] = '\0'; return xstrdup(buff); } - -too_long: - die("cc: pathname too long"); } static void