Remove const cast from leaf functions.
authorJoerg Sonnenberger <joerg@bec.de>
Tue, 2 Jun 2015 17:27:28 +0000 (19:27 +0200)
committerJoerg Sonnenberger <joerg@bec.de>
Tue, 2 Jun 2015 17:27:28 +0000 (19:27 +0200)
commit9472bbaa95675a6b0e7222a9d6aa05ab5f3e0532
tree1b0b37db28756298adb44f17cfa7a4c68c6be2cc
parent0b3c9c6289a3e9e3664924132ceb4306087204d2
Remove const cast from leaf functions.

app_control_register_rule and app_control_unregister_rule lock/unlock
the queue, which is a mutating operation according to the
ao2_lock/_unlock prototype. Depending on the specific (implicit) casts
in SCOPED_LOCK and RAII_VAR, the compiler may warn or not. As the only
callers of those functions do not have the const, get consistent results
by just dropping it.

Change-Id: Ib9e6296155a39bc5d627142a3828180c3cfe8fbb
res/stasis/control.c