diff options
| author | Michael Kerrisk <mtk.manpages@gmail.com> | 2017-01-25 07:41:44 +1300 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2017-01-25 07:41:44 +1300 |
| commit | 729b84f4737be1690cd0e21c7bf5ecaa6d3afc2c (patch) | |
| tree | 7028e18871bd535712fa376702ab511e4a87b3ca /man3 | |
| parent | 6284854c9d42e45ee2750a31321c92089e26fcac (diff) | |
| download | man-pages-729b84f4737be1690cd0e21c7bf5ecaa6d3afc2c.tar.gz | |
strverscmp.3: Fix comparison error in example program
Reported-by: Vivenzio Pagliari <vivenzio.pagliari@nokia.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man3')
| -rw-r--r-- | man3/strverscmp.3 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/man3/strverscmp.3 b/man3/strverscmp.3 index e2a383afa4..8efc5723e4 100644 --- a/man3/strverscmp.3 +++ b/man3/strverscmp.3 @@ -148,7 +148,7 @@ main(int argc, char *argv[]) res = strverscmp(argv[1], argv[2]); printf("%s %s %s\\n", argv[1], - (res == \-1) ? "<" : (res == 0) ? "==" : ">", argv[2]); + (res < 0) ? "<" : (res == 0) ? "==" : ">", argv[2]); exit(EXIT_SUCCESS); } |
