mirror of
https://github.com/ipxe/ipxe
synced 2025-12-23 05:21:49 +03:00
[settings] Explicitly separate the concept of a completed fetched setting
The fetch_setting() family of functions may currently modify the definition of the specified setting (e.g. to add missing type information). Clean up this interface by requiring callers to provide an explicit buffer to contain the completed definition of the fetched setting, if required. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -58,14 +58,14 @@ struct oncrpc_cred oncrpc_auth_none = {
|
||||
.length = 0
|
||||
};
|
||||
|
||||
struct setting uid_setting __setting ( SETTING_AUTH ) = {
|
||||
const struct setting uid_setting __setting ( SETTING_AUTH ) = {
|
||||
.name = "uid",
|
||||
.description = "User ID",
|
||||
.tag = DHCP_EB_UID,
|
||||
.type = &setting_type_uint32
|
||||
};
|
||||
|
||||
struct setting gid_setting __setting ( SETTING_AUTH ) = {
|
||||
const struct setting gid_setting __setting ( SETTING_AUTH ) = {
|
||||
.name = "gid",
|
||||
.description = "Group ID",
|
||||
.tag = DHCP_EB_GID,
|
||||
|
||||
Reference in New Issue
Block a user