scc

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

commit fe2604df482dc30510d4561efb92b8bff41cf86f
parent adf887a13b0155f3dae1a7fd2191d6f021b91709
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