network: Return an Error Appropriate for Function Signature
authorGrant Erickson <marathon96@gmail.com>
Mon, 2 May 2011 23:50:22 +0000 (16:50 -0700)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 3 May 2011 09:47:56 +0000 (11:47 +0200)
commit1cd6b098b484fb5993a5e55b1d8aaa97db38d416
tree99b401fa49d0fe11b3d54b86f4177b66a773ca35
parenteb1dd03b810c3118495412884565af3d26669fad
network: Return an Error Appropriate for Function Signature

Currently, one of the return paths in __connman_network_set_ipconfig
returns FALSE, inconsistently with its function signature return type
of 'int'.

This patch returns the error code specified in 'ret'.
src/network.c