Removed useless register keywords.

Modern compilers (especially GCC) ignore the register keyword anyway and the latest cc65 snapshot generates actually larger code with the register keyword at the locations in question.
This commit is contained in:
Oliver Schmidt 2013-03-06 14:32:36 +01:00
parent d71ce70c54
commit 4d4b796abb

View File

@ -284,7 +284,7 @@ void
tcp_attach(struct uip_conn *conn,
void *appstate)
{
register uip_tcp_appstate_t *s;
uip_tcp_appstate_t *s;
s = &conn->appstate;
s->p = PROCESS_CURRENT();
@ -298,7 +298,7 @@ void
udp_attach(struct uip_udp_conn *conn,
void *appstate)
{
register uip_udp_appstate_t *s;
uip_udp_appstate_t *s;
s = &conn->appstate;
s->p = PROCESS_CURRENT();
@ -394,7 +394,7 @@ eventhandler(process_event_t ev, process_data_t data)
}
{
register struct uip_conn *cptr;
struct uip_conn *cptr;
for(cptr = &uip_conns[0]; cptr < &uip_conns[UIP_CONNS]; ++cptr) {
if(cptr->appstate.p == p) {
@ -406,7 +406,7 @@ eventhandler(process_event_t ev, process_data_t data)
#endif /* UIP_TCP */
#if UIP_UDP
{
register struct uip_udp_conn *cptr;
struct uip_udp_conn *cptr;
for(cptr = &uip_udp_conns[0];
cptr < &uip_udp_conns[UIP_UDP_CONNS]; ++cptr) {
@ -697,7 +697,7 @@ tcpip_poll_tcp(struct uip_conn *conn)
void
tcpip_uipcall(void)
{
register uip_udp_appstate_t *ts;
uip_udp_appstate_t *ts;
#if UIP_UDP
if(uip_conn != NULL) {
@ -712,7 +712,7 @@ tcpip_uipcall(void)
#if UIP_TCP
{
static unsigned char i;
register struct listenport *l;
struct listenport *l;
/* If this is a connection request for a listening port, we must
mark the connection with the right process ID. */