]> git.pond.sub.org Git - empserver/commit
Simplify journal_entry_pr(), rename to journal_entry_write()
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 21 Jan 2012 15:48:53 +0000 (16:48 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Mon, 20 Feb 2012 06:34:34 +0000 (07:34 +0100)
commita89af8c64d6153f21a98fe4942b75cca952f63fb
tree75b16fec8cbbec92527b6399a64528793670a6e6
parentf7533451d099437fafabdca5d566bb999ce5a97c
Simplify journal_entry_pr(), rename to journal_entry_write()

journal_entry_pr(S, N) writes up to N characters from zero-terminated
string S.  journal_input() passes -1 for N to write all characters.
Unclean.  SIZE_MAX would do, but it's C99, and MSC doesn't provide it.

Simplify journal_entry_pr() to write exactly N characters.  This makes
it more similar to write() than to pr(), therefore rename.
src/lib/subs/journal.c