Removed duplicate check for storage size

Signed-off-by: Cydh Ramdh <cydh@pservero.com>
This commit is contained in:
Cydh Ramdh 2016-11-04 07:27:26 +07:00
parent 9c552ca256
commit aa0b7cd7ba

View File

@ -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);