Changeset 4d86e06 for zephyr.c


Ignore:
Timestamp:
Jul 23, 2009, 12:53:57 AM (12 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
ba6c8bd
Parents:
029a8b5
Message:
Get rid of a whole bunch of useless casts.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • zephyr.c

    rd43edd2 r4d86e06  
    4242  }
    4343
    44   (void) memset((char *)&sin, 0, sizeof(struct sockaddr_in));
     44  (void) memset(&sin, 0, sizeof(struct sockaddr_in));
    4545
    4646  sp = getservbyname(HM_SVCNAME, "udp");
     
    5151  sin.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
    5252
    53   (void) memset((char *)&req, 0, sizeof(req));
     53  (void) memset(&req, 0, sizeof(req));
    5454  req.z_kind = STAT;
    5555  req.z_port = 0;
     
    278278   
    279279    /* add it to the list of subs */
    280     if ((tmp=(char *) strtok(start, ",\n\r"))==NULL) continue;
     280    if ((tmp=strtok(start, ",\n\r"))==NULL) continue;
    281281    subs[count].zsub_class=owl_strdup(tmp);
    282     if ((tmp=(char *) strtok(NULL, ",\n\r"))==NULL) continue;
     282    if ((tmp=strtok(NULL, ",\n\r"))==NULL) continue;
    283283    subs[count].zsub_classinst=owl_strdup(tmp);
    284     if ((tmp=(char *) strtok(NULL, " \t\n\r"))==NULL) continue;
     284    if ((tmp=strtok(NULL, " \t\n\r"))==NULL) continue;
    285285    subs[count].zsub_recipient=owl_strdup(tmp);
    286286   
Note: See TracChangeset for help on using the changeset viewer.