]> git.pond.sub.org Git - empserver/commit
subs: De-duplicate formatting in intelligence_report()
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 11 Jan 2015 12:38:40 +0000 (13:38 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Mon, 2 Mar 2015 07:20:50 +0000 (08:20 +0100)
commitc8e5b4fc508360ed0b0d42c7391c32502b8d430b
tree4c9a7a17f04c2502ea751737253f41fde1077a4d
parent61fc526b5dfbd6f5865a84b7e8d20beec4a8f595
subs: De-duplicate formatting in intelligence_report()

Every piece is formatted either with pr(), or with sprintf() for later
sending with wu().  The output is actually identical.  Format with
sprintf() always, and then either pr() or wu() the results.

While there, change the first parameter's type from int to natid.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
include/land.h
src/lib/subs/lndsub.c