Removed duplicate check for storage size
Signed-off-by: Cydh Ramdh <cydh@pservero.com>
This commit is contained in:
parent
9c552ca256
commit
aa0b7cd7ba
@ -2000,9 +2000,8 @@ void do_init_chrif(void) {
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
if (sizeof(struct s_storage) > 0xFFFF){
|
||||
ShowError("s_storage size = %d is too big to be transmitted. (must be below 0xFFFF) \n",
|
||||
sizeof(struct s_storage));
|
||||
if (sizeof(struct s_storage) > 0xFFFF) {
|
||||
ShowError("s_storage size = %d is too big to be transmitted. (must be below 0xFFFF)\n", sizeof(struct s_storage));
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
@ -2012,11 +2011,6 @@ void do_init_chrif(void) {
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
if(sizeof(struct s_storage) > 0xFFFF) {
|
||||
ShowError("s_storage size = %d is too big to be transmitted. (must be below 0xFFFF)\n", sizeof(struct s_storage));
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
auth_db = idb_alloc(DB_OPT_BASE);
|
||||
auth_db_ers = ers_new(sizeof(struct auth_node),"chrif.c::auth_db_ers",ERS_OPT_NONE);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user