diff --git a/src/cksum.c b/src/cksum.c index 6219a08..209df54 100644 --- a/src/cksum.c +++ b/src/cksum.c @@ -1,5 +1,5 @@ /* $Id$ */ -/* Copyright (c) 2007 Pierre Pronchery */ +/* Copyright (c) 2009 Pierre Pronchery */ /* This file is part of DeforaOS Unix utils */ /* utils is not free software; you can redistribute it and/or modify it under * the terms of the Creative Commons Attribution-NonCommercial-ShareAlike 3.0 @@ -164,6 +164,7 @@ static int _usage(void) return 1; } + /* main */ int main(int argc, char * argv[]) { @@ -175,5 +176,5 @@ int main(int argc, char * argv[]) default: return _usage(); } - return _cksum(argc - optind, &argv[optind]) == 0 ? 0 : 2; + return (_cksum(argc - optind, &argv[optind]) == 0) ? 0 : 2; } diff --git a/src/cmp.c b/src/cmp.c index cc80c9b..a18c400 100644 --- a/src/cmp.c +++ b/src/cmp.c @@ -1,5 +1,5 @@ /* $Id$ */ -/* Copyright (c) 2007 Pierre Pronchery */ +/* Copyright (c) 2009 Pierre Pronchery */ /* This file is part of DeforaOS Unix utils */ /* utils is not free software; you can redistribute it and/or modify it under * the terms of the Creative Commons Attribution-NonCommercial-ShareAlike 3.0 @@ -141,5 +141,5 @@ int main(int argc, char * argv[]) } if(argc - optind != 2) return _usage(); - return _cmp(ot, argv[optind], argv[optind+1]) == 0 ? 0 : 2; + return (_cmp(ot, argv[optind], argv[optind + 1]) == 0) ? 0 : 2; }