summaryrefslogtreecommitdiff
path: root/usr/src/lib/libcurses/screen/termcap.ed
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/lib/libcurses/screen/termcap.ed')
-rw-r--r--usr/src/lib/libcurses/screen/termcap.ed25
1 files changed, 12 insertions, 13 deletions
diff --git a/usr/src/lib/libcurses/screen/termcap.ed b/usr/src/lib/libcurses/screen/termcap.ed
index da57358091..6375be8dfb 100644
--- a/usr/src/lib/libcurses/screen/termcap.ed
+++ b/usr/src/lib/libcurses/screen/termcap.ed
@@ -16,8 +16,6 @@ H
* contributors.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/*
* Simulation of termcap using terminfo.
* This file is created from termcap.ed. DO NOT EDIT ME!
@@ -60,17 +58,18 @@ _stripdelays(char *inbuf, char *outbuf, int size)
if (inbuf == NULL)
return (0);
- else
- while (size && *inbuf)
- if (*inbuf == '$' && *(inbuf+1) == '<')
- /* LINTED */
- while (*inbuf && *inbuf++ != '>');
- else {
- size--;
- *outbuf++ = *inbuf++;
- *outbuf = 0;
- }
- return (saveoutbuf);
+
+ while (size && *inbuf) {
+ if (*inbuf == '$' && *(inbuf+1) == '<') {
+ /* LINTED */
+ while (*inbuf && *inbuf++ != '>');
+ } else {
+ size--;
+ *outbuf++ = *inbuf++;
+ *outbuf = 0;
+ }
+ }
+ return (saveoutbuf);
}
/* generated by sort on caps */