monitor: fail when 'i' type is greater than 32-bit
authorLuiz Capitulino <lcapitulino@redhat.com>
Fri, 28 Aug 2009 18:27:26 +0000 (15:27 -0300)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 4 Sep 2009 14:37:33 +0000 (09:37 -0500)
commit3e0eb644142791226ee7166dfc3bfca0a030a8fe
tree30e0c062eca6d63b0d02319fb50b81aeba1e1986
parent5bf01c4107fcbbbb65f0cdc94c2a9feb404d6fc5
monitor: fail when 'i' type is greater than 32-bit

The 'i' argument type is for 32-bit only and most handlers
will use an 'int' to store its value.

It's better to fail gracefully when the user enters a value
greater than 32-bit than to get subtle casting bugs.

Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
monitor.c