/[lwip]/contrib/ports/unix/netif/unixif.c
ViewVC logotype

Diff of /contrib/ports/unix/netif/unixif.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.10 by kieranm, Tue Aug 10 14:06:19 2004 UTC revision 1.11 by christiaans, Mon Oct 10 07:25:35 2005 UTC
# Line 89  unix_socket_client(char *name) Line 89  unix_socket_client(char *name)
89                                  /* fill socket address structure w/our address */                                  /* fill socket address structure w/our address */
90    memset(&unix_addr, 0, sizeof(unix_addr));    memset(&unix_addr, 0, sizeof(unix_addr));
91    unix_addr.sun_family = AF_UNIX;    unix_addr.sun_family = AF_UNIX;
92    sprintf(unix_addr.sun_path, "%s%05d", "/var/tmp/", getpid());    snprintf(unix_addr.sun_path, sizeof(unix_addr.sun_path), "%s%05d", "/var/tmp/", getpid());
93  #if !defined(linux) && !defined(cygwin)  #if !defined(linux) && !defined(cygwin)
94    len = sizeof(unix_addr.sun_len) + sizeof(unix_addr.sun_family) +    len = sizeof(unix_addr.sun_len) + sizeof(unix_addr.sun_family) +
95      strlen(unix_addr.sun_path) + 1;      strlen(unix_addr.sun_path) + 1;

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26