warnings: refactoring
authorTheophile Ranquet <theophile.ranquet@gmail.com>
Mon, 1 Oct 2012 15:01:02 +0000 (15:01 +0000)
committerAkim Demaille <akim@lrde.epita.fr>
Mon, 1 Oct 2012 13:45:25 +0000 (15:45 +0200)
commita686f6cdc0077cea9f705f3c87bb8fc4fa27e1b4
tree1404c23e586b06201952abeaae48ec332d0044e3
parent46b7d74cb5d2f4ccefdf92f46d25cd8761324f18
warnings: refactoring

The code here was too confusing, this seems more natural.

* src/complain.c (error_message): Move the indentation check and the category
output to complains. Also, no longer take a 'warnings' argument.
(complains): Factor calls to error_message.

Signed-off-by: Akim Demaille <akim@lrde.epita.fr>
src/complain.c