-seq_delsel (struct msgs *mp, char *cp, int public, int zero)
+seq_delsel(struct msgs *mp, char *cp, int public, int zero)
- advise (NULL, "only %d sequences allowed (no room for %s)!", NUMATTRS, cp);
+ advise(NULL, "only %d sequences allowed (no room for %s)!", NUMATTRS, cp);
- if (!(mp->msgattrs[i] = strdup (cp))) {
- advise (NULL, "strdup failed");
+ if (!(mp->msgattrs[i] = strdup(cp))) {
+ advise(NULL, "strdup failed");
** now add sequence bit to all existing messages
*/
for (msgnum = mp->lowmsg; msgnum <= mp->hghmsg; msgnum++) {
** now add sequence bit to all existing messages
*/
for (msgnum = mp->lowmsg; msgnum <= mp->hghmsg; msgnum++) {
- if (does_exist (mp, msgnum))
- add_sequence (mp, i, msgnum);
+ if (does_exist(mp, msgnum))
+ add_sequence(mp, i, msgnum);
** Now clear the bit on all selected messages
*/
for (msgnum = mp->lowsel; msgnum <= mp->hghsel; msgnum++)
** Now clear the bit on all selected messages
*/
for (msgnum = mp->lowsel; msgnum <= mp->hghsel; msgnum++)
- if (is_selected (mp, msgnum))
- clear_sequence (mp, i, msgnum);
+ if (is_selected(mp, msgnum))
+ clear_sequence(mp, i, msgnum);
else if (new_seq) {
/*
** If public == -1, then only set the
** public/private bit for new sequences.
*/
else if (new_seq) {
/*
** If public == -1, then only set the
** public/private bit for new sequences.
*/
- if (!strcmp (mp->msgattrs[i], cp)) {
- clear_sequence (mp, i, msgnum);
+ if (strcmp(mp->msgattrs[i], cp)==0) {
+ clear_sequence(mp, i, msgnum);