index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2011-01-05 21:17:30 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-01-05 21:17:30 -0600 |
commit | 04dc87e01247ab2ba932af0911e77ca1d711cf0f (patch) | |
tree | d520a5396a901b23c7498a202233d52429d5f221 /src/util | |
parent | 26652768d62e9acb63e600ed07e9841ec553a3d7 (diff) |
-rw-r--r-- | src/util/vercmp.c | 5 |
diff --git a/src/util/vercmp.c b/src/util/vercmp.c index 8a785bb8..ea6722fa 100644 --- a/src/util/vercmp.c +++ b/src/util/vercmp.c @@ -18,6 +18,7 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ +#include <stdlib.h> #include <stdio.h> /* printf */ #include <string.h> /* strncpy */ @@ -30,7 +31,7 @@ int alpm_pkg_vercmp(const char *a, const char *b); static void usage(void) { fprintf(stderr, "usage: %s <ver1> <ver2>\n\n", BASENAME); - fprintf(stderr, "return values:\n"); + fprintf(stderr, "output values:\n"); fprintf(stderr, " < 0 : if ver1 < ver2\n"); fprintf(stderr, " 0 : if ver1 == ver2\n"); fprintf(stderr, " > 0 : if ver1 > ver2\n"); @@ -61,5 +62,5 @@ int main(int argc, char *argv[]) ret = alpm_pkg_vercmp(s1, s2); printf("%d\n", ret); - return(ret); + return(EXIT_SUCCESS); } |