diff options
author | dholland <dholland> | 2012-12-27 06:13:20 +0000 |
---|---|---|
committer | dholland <dholland> | 2012-12-27 06:13:20 +0000 |
commit | 228d91c0b6e46edaba9c1e78e3bc64f5b63fd24a (patch) | |
tree | 40b96b63a4ac53300473c7f80bef837dd96de03c /editors/mflteco/Makefile | |
parent | feb39bf402cb088bbb96653880ed7850ee35df2f (diff) | |
download | pkgsrc-228d91c0b6e46edaba9c1e78e3bc64f5b63fd24a.tar.gz |
Clean up legacy C.
Now passes gcc -Wall -Wextra -Wmissing-declarations -Wwrite-strings on gcc45.
May build with clang now too.
Changes:
- use standard headers
- don't declare own errno, fopen(), getenv(), or malloc()
- declare own functions
- declare void functions void
- avoid implicit int
- use C89
- use some const
- use some static
- fix signed/unsigned mismatches
- call execl() properly
- don't cast return value of malloc
- initialize struct sigaction correctly
- use <ctype.h> functions correctly
- don't index arrays with (signed) char
- don't put function declarations inside function bodies
- patch up two uninitialized variables
- silence some compiler warnings that are not bugs
- remove some unused objects
and:
- add patch comments for preexisting patches
- correct some minor pkglint
As a couple of these things fixed bugs (e.g. the execl calls), bump
PKGREVISION.
Diffstat (limited to 'editors/mflteco/Makefile')
-rw-r--r-- | editors/mflteco/Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/editors/mflteco/Makefile b/editors/mflteco/Makefile index dc82654c736..78ea59ff12a 100644 --- a/editors/mflteco/Makefile +++ b/editors/mflteco/Makefile @@ -1,8 +1,9 @@ -# $NetBSD: Makefile,v 1.6 2012/10/03 11:43:37 asau Exp $ +# $NetBSD: Makefile,v 1.7 2012/12/27 06:13:20 dholland Exp $ # -PKGNAME= mflteco-19920331 DISTNAME= mflteco +PKGNAME= mflteco-19920331 +PKGREVISION= 1 CATEGORIES= editors MASTER_SITES= http://www.catb.org/~esr/retro/ |