projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rework includes a bit
[apps/madmutt.git]
/
complete.c
diff --git
a/complete.c
b/complete.c
index
b9d1088
..
40af1a6
100644
(file)
--- a/
complete.c
+++ b/
complete.c
@@
-33,13
+33,13
@@
*
* return 0 if ok, -1 if no matches
*/
*
* return 0 if ok, -1 if no matches
*/
-int mutt_complete (char *s, size_t slen)
+int mutt_complete (char *s, s
s
ize_t slen)
{
char *p;
DIR *dirp = NULL;
struct dirent *de;
int i, init = 0;
{
char *p;
DIR *dirp = NULL;
struct dirent *de;
int i, init = 0;
- size_t len;
+ s
s
ize_t len;
char dirpart[_POSIX_PATH_MAX], exp_dirpart[_POSIX_PATH_MAX];
char filepart[_POSIX_PATH_MAX];
char dirpart[_POSIX_PATH_MAX], exp_dirpart[_POSIX_PATH_MAX];
char filepart[_POSIX_PATH_MAX];
@@
-49,7
+49,7
@@
int mutt_complete (char *s, size_t slen)
#ifdef USE_NNTP
if (option (OPTNEWS)) {
#ifdef USE_NNTP
if (option (OPTNEWS)) {
-
LIST
*l = CurrentNewsSrv->list;
+
string_list_t
*l = CurrentNewsSrv->list;
m_strcpy(filepart, sizeof(filepart), s);
m_strcpy(filepart, sizeof(filepart), s);
@@
-140,7
+140,7
@@
int mutt_complete (char *s, size_t slen)
}
else {
*p = 0;
}
else {
*p = 0;
- len =
(size_t) (p - s)
;
+ len =
p - s
;
memcpy(dirpart, s, len);
dirpart[len] = 0;
p++;
memcpy(dirpart, s, len);
dirpart[len] = 0;
p++;