diff options
Diffstat (limited to 'lib/extra_opts.c')
| -rw-r--r-- | lib/extra_opts.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/extra_opts.c b/lib/extra_opts.c index 89b10560..b9843eba 100644 --- a/lib/extra_opts.c +++ b/lib/extra_opts.c | |||
| @@ -26,15 +26,14 @@ | |||
| 26 | #include "extra_opts.h" | 26 | #include "extra_opts.h" |
| 27 | 27 | ||
| 28 | /* FIXME: copied from utils.h; we should move a bunch of libs! */ | 28 | /* FIXME: copied from utils.h; we should move a bunch of libs! */ |
| 29 | int | 29 | bool is_option2 (char *str) |
| 30 | is_option2 (char *str) | ||
| 31 | { | 30 | { |
| 32 | if (!str) | 31 | if (!str) |
| 33 | return FALSE; | 32 | return false; |
| 34 | else if (strspn (str, "-") == 1 || strspn (str, "-") == 2) | 33 | else if (strspn (str, "-") == 1 || strspn (str, "-") == 2) |
| 35 | return TRUE; | 34 | return true; |
| 36 | else | 35 | else |
| 37 | return FALSE; | 36 | return false; |
| 38 | } | 37 | } |
| 39 | 38 | ||
| 40 | /* this is the externally visible function used by plugins */ | 39 | /* this is the externally visible function used by plugins */ |
