diff options
Diffstat (limited to 'ot_accesslist.c')
-rw-r--r-- | ot_accesslist.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ot_accesslist.c b/ot_accesslist.c index 412c539..91e99b3 100644 --- a/ot_accesslist.c +++ b/ot_accesslist.c | |||
@@ -107,7 +107,8 @@ int accesslist_blessip( char *ip, ot_permissions permissions ) { | |||
107 | memmove( g_adminip_addresses + g_adminip_count, ip, 4 ); | 107 | memmove( g_adminip_addresses + g_adminip_count, ip, 4 ); |
108 | g_adminip_permissions[ g_adminip_count++ ] = permissions; | 108 | g_adminip_permissions[ g_adminip_count++ ] = permissions; |
109 | #ifdef _DEBUG | 109 | #ifdef _DEBUG |
110 | fprintf( stderr, "Blessing ip address %d.%d.%d.%d with:", (uint8_t)ip[0], (uint8_t)ip[1], (uint8_t)ip[2], (uint8_t)ip[3]); | 110 | uint8_t *_ip = (uint8_t*)ip; |
111 | fprintf( stderr, "Blessing ip address %d.%d.%d.%d with:", _ip[0], _ip[1], _ip[2], _ip[3]); | ||
111 | if( permissions & OT_PERMISSION_MAY_STAT ) fputs( " may_fetch_stats", stderr ); | 112 | if( permissions & OT_PERMISSION_MAY_STAT ) fputs( " may_fetch_stats", stderr ); |
112 | if( permissions & OT_PERMISSION_MAY_SYNC ) fputs( " may_sync_batch", stderr ); | 113 | if( permissions & OT_PERMISSION_MAY_SYNC ) fputs( " may_sync_batch", stderr ); |
113 | if( permissions & OT_PERMISSION_MAY_LIVESYNC ) fputs( " may_sync_live", stderr ); | 114 | if( permissions & OT_PERMISSION_MAY_LIVESYNC ) fputs( " may_sync_live", stderr ); |