mirror of
https://dev.iopsys.eu/bbf/bbfdm.git
synced 2026-02-19 18:51:58 +01:00
Fix compile error on 64 bit systems
Fixes casting pointers of invallid size to int. Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
This commit is contained in:
parent
6c89f78545
commit
a3113301be
1 changed files with 1 additions and 1 deletions
|
|
@ -600,7 +600,7 @@ char *update_instance_alias(int action, char **last_inst, void *argv[])
|
|||
char *update_instance_without_section(int action, char **last_inst, void *argv[])
|
||||
{
|
||||
char *instance, buf[64] = {0};
|
||||
int instnbr = (int) argv[0];
|
||||
int instnbr = (int)(long)argv[0];
|
||||
|
||||
if (action == INSTANCE_MODE_ALIAS) {
|
||||
snprintf(buf, sizeof(buf), "[cpe-%d]", instnbr);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue