#
843e3983 |
| 16-Nov-2021 |
rillig <rillig@NetBSD.org> |
echo: fix lint error due to strict bool mode
No functional change.
|
#
977be770 |
| 10-Nov-2021 |
kre <kre@NetBSD.org> |
With -Wall compiling this was giving:
echo.c: In function 'main': echo.c:74:1: warning: control reaches end of non-void function
This raises 2 issues.
First, why with WARNS set to 6, which shoul
With -Wall compiling this was giving:
echo.c: In function 'main': echo.c:74:1: warning: control reaches end of non-void function
This raises 2 issues.
First, why with WARNS set to 6, which should include just about everything, was this not causing problems with everyday builds? Surely falling off the end of a non-void function without returning a specific value is one of the more basic errors that should be fixed. (Whatever the name of the function). Is there a missing -Wxxx option?
And second, does C99 really promise: Remove unnecessary call to exit(0); returning from main is equivalent since C99. in the sense that simply falling out of main() is exit(0)? Or is it simply saying that the return value of main() is the exit status (which has been true for much longer than since c99)?
show more ...
|
#
cfa535cd |
| 10-Oct-2021 |
rillig <rillig@NetBSD.org> |
echo: clean up, increase WARNS to 6
Lint can handle __COPYRIGHT and __RCSID, so there is no need to hide them anymore.
Use proper type 'bool' for nflag, ensure correct types via lint's strict bool
echo: clean up, increase WARNS to 6
Lint can handle __COPYRIGHT and __RCSID, so there is no need to hide them anymore.
Use proper type 'bool' for nflag, ensure correct types via lint's strict bool mode.
Remove unnecessary call to exit(0); returning from main is equivalent since C99.
No functional change.
show more ...
|
#
585b1b40 |
| 19-May-2021 |
kre <kre@NetBSD.org> |
Catch up with /bin/sh built-in echo ... if a write error occurs, don't just exit(1), write an error message to stderr as well (required for POSIX conformance).
|
#
03c5b722 |
| 05-Sep-2016 |
sevan <sevan@NetBSD.org> |
Drop main() prototype.
|
#
baa6f0b9 |
| 18-Sep-2008 |
dholland <dholland@NetBSD.org> |
Check ferror(stdout) and exit(1) if there's been a problem. Fixes PR bin/39574 from Ed Ravin, but with a simpler patch.
|
#
2fe2731d |
| 20-Jul-2008 |
lukem <lukem@NetBSD.org> |
Remove the \n and tabs from the __COPYRIGHT() strings.
|
#
9655f5c2 |
| 26-May-2008 |
christos <christos@NetBSD.org> |
PR/38755: murray armfield: /bin posix programs missing setprogname and/or setlocale
|
#
493b309b |
| 25-Nov-2003 |
simonb <simonb@NetBSD.org> |
Put a few headers back so this compiles again. Compile problems noticed by Dan Carosone.
|
#
2c872ddb |
| 24-Nov-2003 |
jschauma <jschauma@NetBSD.org> |
Also remove headers that are no longer needed. Also pointed out by Mike Small.
|
#
d772e9e4 |
| 24-Nov-2003 |
jschauma <jschauma@NetBSD.org> |
Remove unused variable stdout_ok, which was left over from my changes in September. Pointed out by Mike Small in a private email.
|
#
6a75fbb6 |
| 14-Sep-2003 |
jschauma <jschauma@NetBSD.org> |
Following private discussion with kleink@ and hubertf@ and public discussion on tech-userlevel@, back out printescaped() functionality. kleink: ``We sell rope.''
|
#
b5b29542 |
| 07-Aug-2003 |
agc <agc@NetBSD.org> |
Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22249, verified by myself.
|
#
458ed234 |
| 04-Aug-2003 |
jschauma <jschauma@NetBSD.org> |
As discusses a little while back on tech-userlevel:
If stdout is a tty, use vis(3) to print any filenames to prevent garbage from being printed if the filename contains control- or other non-printab
As discusses a little while back on tech-userlevel:
If stdout is a tty, use vis(3) to print any filenames to prevent garbage from being printed if the filename contains control- or other non-printable characters.
While here, sprinkle some EXIT_FAILURE and NOTREACHED where appropriate.
show more ...
|
#
17382459 |
| 29-Jul-2001 |
wiz <wiz@NetBSD.org> |
ANSIfy, KNF. Parts from #13590 by Petri Koistinen.
|
#
bad15fd3 |
| 05-Nov-1997 |
cgd <cgd@NetBSD.org> |
lint
|
#
ec35801f |
| 20-Jul-1997 |
thorpej <thorpej@NetBSD.org> |
__RCSID()/__COPYRIGHT()/prototype police.
|
#
49f0ad86 |
| 21-Mar-1995 |
cgd <cgd@NetBSD.org> |
convert to new RCS id conventions.
|
#
667b5ea1 |
| 22-Sep-1994 |
mycroft <mycroft@NetBSD.org> |
Merge 4.4-Lite version.
|
#
a579b792 |
| 01-Aug-1993 |
mycroft <mycroft@NetBSD.org> |
Add RCS identifiers.
|
#
06be6008 |
| 23-Mar-1993 |
cgd <cgd@NetBSD.org> |
changed "Id" to "Header" for rcsids
|
#
346aa5dd |
| 22-Mar-1993 |
cgd <cgd@NetBSD.org> |
added rcs ids to all files
|
#
61f28255 |
| 21-Mar-1993 |
cgd <cgd@NetBSD.org> |
initial import of 386bsd-0.1 sources
|