Branch: Tag:

2014-05-26

2014-05-26 15:31:21 by Per Hedbor <ph@opera.com>

Removed a few casts

669:    SIMPLE_TOO_FEW_ARGS_ERROR ("Stdio.Port->set_backend", 1);    if (TYPEOF(Pike_sp[-args]) != PIKE_T_OBJECT)    SIMPLE_BAD_ARG_ERROR ("Stdio.Port->set_backend", 1, "object(Pike.Backend)"); -  backend = (struct Backend_struct *) -  get_storage (Pike_sp[-args].u.object, Backend_program); +  backend = get_storage (Pike_sp[-args].u.object, Backend_program);    if (!backend)    SIMPLE_BAD_ARG_ERROR ("Stdio.Port->set_backend", 1, "object(Pike.Backend)");   
774:      int fd_from_portobject( struct object *p )   { -  struct port *po = (struct port *)get_storage( p, port_program ); +  struct port *po = get_storage( p, port_program );    if(!po) return -1;    return po->box.fd;   }