|
@@ -212,7 +212,7 @@ static int set_string ( struct config_context *context,
|
212
|
212
|
option = set_dhcp_option ( context->options, setting->tag,
|
213
|
213
|
value, strlen ( value ) );
|
214
|
214
|
if ( ! option )
|
215
|
|
- return -ENOMEM;
|
|
215
|
+ return -ENOSPC;
|
216
|
216
|
return 0;
|
217
|
217
|
}
|
218
|
218
|
|
|
@@ -261,12 +261,12 @@ static int set_ipv4 ( struct config_context *context,
|
261
|
261
|
struct in_addr ipv4;
|
262
|
262
|
int rc;
|
263
|
263
|
|
264
|
|
- if ( ( rc = inet_aton ( value, &ipv4 ) ) == 0 )
|
265
|
|
- return rc;
|
|
264
|
+ if ( inet_aton ( value, &ipv4 ) == 0 )
|
|
265
|
+ return -EINVAL;
|
266
|
266
|
option = set_dhcp_option ( context->options, setting->tag,
|
267
|
267
|
&ipv4, sizeof ( ipv4 ) );
|
268
|
268
|
if ( ! option )
|
269
|
|
- return -ENOMEM;
|
|
269
|
+ return -ENOSPC;
|
270
|
270
|
return 0;
|
271
|
271
|
}
|
272
|
272
|
|
|
@@ -330,7 +330,7 @@ static int set_int ( struct config_context *context,
|
330
|
330
|
option = set_dhcp_option ( context->options, setting->tag,
|
331
|
331
|
&u.bytes[ sizeof ( u ) - size ], size );
|
332
|
332
|
if ( ! option )
|
333
|
|
- return -ENOMEM;
|
|
333
|
+ return -ENOSPC;
|
334
|
334
|
return 0;
|
335
|
335
|
}
|
336
|
336
|
|