diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/minibuf.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/minibuf.c b/src/minibuf.c index 4d64c33f2cb..10f95d6d56b 100644 --- a/src/minibuf.c +++ b/src/minibuf.c | |||
| @@ -774,8 +774,9 @@ The argument given to PREDICATE is the alist element or the symbol from the obar | |||
| 774 | Return -1 if strings match, | 774 | Return -1 if strings match, |
| 775 | else number of chars that match at the beginning. */ | 775 | else number of chars that match at the beginning. */ |
| 776 | 776 | ||
| 777 | int | ||
| 777 | scmp (s1, s2, len) | 778 | scmp (s1, s2, len) |
| 778 | register char *s1, *s2; | 779 | register unsigned char *s1, *s2; |
| 779 | int len; | 780 | int len; |
| 780 | { | 781 | { |
| 781 | register int l = len; | 782 | register int l = len; |
| @@ -792,7 +793,8 @@ scmp (s1, s2, len) | |||
| 792 | } | 793 | } |
| 793 | if (l == 0) | 794 | if (l == 0) |
| 794 | return -1; | 795 | return -1; |
| 795 | else return len - l; | 796 | else |
| 797 | return len - l; | ||
| 796 | } | 798 | } |
| 797 | 799 | ||
| 798 | DEFUN ("all-completions", Fall_completions, Sall_completions, 2, 3, 0, | 800 | DEFUN ("all-completions", Fall_completions, Sall_completions, 2, 3, 0, |