Mercurial > pidgin
comparison libpurple/protocols/qq/send_file.c @ 16345:6b4e778ee4b4
Death to // comments.
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Mon, 23 Apr 2007 17:19:11 +0000 |
parents | 32c366eeeb99 |
children | b8572b937c09 |
comparison
equal
deleted
inserted
replaced
16344:a45cb71d54db | 16345:6b4e778ee4b4 |
---|---|
360 ifc.ifc_len = sizeof(buf); | 360 ifc.ifc_len = sizeof(buf); |
361 ifc.ifc_buf = (caddr_t) buf; | 361 ifc.ifc_buf = (caddr_t) buf; |
362 if (ioctl(fd, SIOCGIFCONF, (char *) &ifc) < 0) return 0; | 362 if (ioctl(fd, SIOCGIFCONF, (char *) &ifc) < 0) return 0; |
363 intrface = ifc.ifc_len / sizeof(struct ifreq); | 363 intrface = ifc.ifc_len / sizeof(struct ifreq); |
364 for (i = 0; i < intrface; i++) { | 364 for (i = 0; i < intrface; i++) { |
365 //buf[intrface].ifr_name | 365 /* buf[intrface].ifr_name */ |
366 if (ioctl(fd, SIOCGIFADDR, (char *) &buf[i]) >= 0) | 366 if (ioctl(fd, SIOCGIFADDR, (char *) &buf[i]) >= 0) |
367 { | 367 { |
368 ret = (((struct sockaddr_in *)(&buf[i].ifr_addr))->sin_addr).s_addr; | 368 ret = (((struct sockaddr_in *)(&buf[i].ifr_addr))->sin_addr).s_addr; |
369 if (ret == g_ntohl(0x7f000001)) continue; | 369 if (ret == g_ntohl(0x7f000001)) continue; |
370 return ret; | 370 return ret; |