diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2021-11-28 14:36:15 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2021-11-28 14:36:15 -0800 |
commit | 7e1af8b17bfb81ffd6cc5b57c8c772ff340381be (patch) | |
tree | 9a4885b8ab71ce70075c42d279521b4333fcf364 /tocutil.c | |
parent | c9ef965166250a6e386871bd44db3310e556143b (diff) |
Trim trailing whitespace from lines
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'tocutil.c')
-rw-r--r-- | tocutil.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -57,7 +57,7 @@ int TUScanFileOutOfDate(Toc toc) } -/* Make sure the sequence menu entries correspond exactly to the sequences +/* Make sure the sequence menu entries correspond exactly to the sequences * for this toc. */ @@ -99,7 +99,7 @@ void TUCheckSequenceMenu(Toc toc) /* Erase the current check mark. */ - for (i=(n-1); i < numChildren; i++) + for (i=(n-1); i < numChildren; i++) ToggleMenuItem(children[i], False); /* Delete any entries which should be deleted. */ @@ -109,9 +109,9 @@ void TUCheckSequenceMenu(Toc toc) XtDestroyWidget(children[i]); /* Create any entries which should be created. */ - + callbacks[0].closure = (XtPointer) scrn; - for (i=1; i < toc->numsequences; i++) + for (i=1; i < toc->numsequences; i++) if (! XtNameToWidget(menu, toc->seqlist[i]->name)) XtCreateManagedWidget(toc->seqlist[i]->name, smeBSBObjectClass, menu, args, XtNumber(args)); @@ -393,7 +393,7 @@ void TULoadTocFile(Toc toc) buf[bufsiz-2] = '\n'; msg->buf = strcpy(XtMalloc((Cardinal) ++l), ptr); msg->msgid = atoi(ptr); - do + do ptr = fgets(buf, bufsiz, fid); while (ptr && (int) strlen(ptr) == app_resources.toc_width && buf[bufsiz-2] != '\n'); @@ -609,7 +609,7 @@ Msg TUAppendToc(Toc toc, char *ptr) TUGetFullFolderInfo(toc); if (toc->validity != valid) return NULL; - + if (toc->nummsgs > 0) msgid = toc->msgs[toc->nummsgs - 1]->msgid + 1; else |