Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
50e90b94
...
50e90b9403b13402f7239b93aa26f831de1020b8
authored
2002-08-01 14:05:42 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(util_msgset): Added some comments
1 parent
e96bbfb5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
imap4d/util.c
imap4d/util.c
View file @
50e90b9
...
...
@@ -292,11 +292,13 @@ util_msgset (char *s, size_t **set, int *n, int isuid)
}
}
/* Sort the resulting message set */
qsort
(
*
set
,
*
n
,
sizeof
(
**
set
),
comp_int
);
/* Remove duplicates. tmp serves to avoid extra dereferences */
tmp
=
*
set
;
for
(
i
=
0
,
j
=
1
;
i
<
*
n
;
i
++
)
if
(
tmp
[
j
-
1
]
!=
(
*
set
)
[
i
])
if
(
tmp
[
j
-
1
]
!=
tmp
[
i
])
tmp
[
j
++
]
=
tmp
[
i
];
*
n
=
j
;
return
0
;
...
...
Please
register
or
sign in
to post a comment