librmnetctl: Proper error handling of if_nametoindex()

if_nametoindex() returns an unsigned integer, so errors are indicated
by returning 0 to the caller. This updates the error handling to
check for 0 instead of negative numbers to avoid passing bogus
netlink messages to the kernel. This allows for more consistent and
helpful error messages to be returned to the caller

Change-Id: I5f78781c973e7cb5a8bbc813a31cd49e433034a4
1 file changed
tree: 4a7d8cecf7a6368207f84503b2b287f266774836
  1. datatop/
  2. rmnetctl/
  3. Android.mk
  4. configure.ac
  5. data-oss.pc.in
  6. Makefile.am