mirror of
https://github.com/ipxe/ipxe
synced 2025-12-25 00:17:57 +03:00
[settings] Extend numerical setting tags to "unsigned long"
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -1474,9 +1474,9 @@ struct setting * find_setting ( const char *name ) {
|
||||
* @v name Name
|
||||
* @ret tag Tag number, or 0 if not a valid number
|
||||
*/
|
||||
static unsigned int parse_setting_tag ( const char *name ) {
|
||||
static unsigned long parse_setting_tag ( const char *name ) {
|
||||
char *tmp = ( ( char * ) name );
|
||||
unsigned int tag = 0;
|
||||
unsigned long tag = 0;
|
||||
|
||||
while ( 1 ) {
|
||||
tag = ( ( tag << 8 ) | strtoul ( tmp, &tmp, 0 ) );
|
||||
|
||||
Reference in New Issue
Block a user