]> diplodocus.org Git - nmh/commit
m_getfld.c: Alter Ungetc() to die if it can't rewind.
authorRalph Corderoy <ralph@inputplus.co.uk>
Wed, 9 Aug 2017 13:49:53 +0000 (14:49 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Wed, 9 Aug 2017 13:49:53 +0000 (14:49 +0100)
commitbc2e83953a3c09e6416e335eb6827aaa483a39f6
tree960779c1972376fcd8babb3e29393fd4d0f74411
parentaf56ad38ce8b8123cf048bd02fabec21ba580d15
m_getfld.c: Alter Ungetc() to die if it can't rewind.

It used to return EOF to the caller in this case, but none of the three
callers bothered checking.  And the other return value of a `peek' of
the character that would next be read was also unused.
sbr/m_getfld.c