bonding: fix two compiler warnings