connectivity (Linux): loplugin:cstylecast

Change-Id: If2a3306360ea3db4476b09774e4f93c2c0dc4027