projects
/
oweals
/
cde.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dtprintinfo: Coverity 89561
[oweals/cde.git]
/
cde
/
programs
/
dtlogin
/
chooser.c
diff --git
a/cde/programs/dtlogin/chooser.c
b/cde/programs/dtlogin/chooser.c
index 86e4dbd6a42e083e92596842ce49629d00f2260a..dd034dc1569b9756ea04c07027d8c5eba28d4c98 100644
(file)
--- a/
cde/programs/dtlogin/chooser.c
+++ b/
cde/programs/dtlogin/chooser.c
@@
-16,7
+16,7
@@
* details.
*
* You should have received a copy of the GNU Lesser General Public
* details.
*
* You should have received a copy of the GNU Lesser General Public
- * License along with these librar
ar
ies and programs; if not, write
+ * License along with these libraries and programs; if not, write
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
@@
-582,7
+582,7
@@
RegisterHostname (char *name)
struct hostent *hostent;
struct sockaddr_in in_addr;
struct ifconf ifc;
struct hostent *hostent;
struct sockaddr_in in_addr;
struct ifconf ifc;
-
register
struct ifreq *ifr;
+ struct ifreq *ifr;
struct sockaddr broad_addr;
char buf[2048];
int n;
struct sockaddr broad_addr;
char buf[2048];
int n;
@@
-594,7
+594,7
@@
RegisterHostname (char *name)
if (ioctl (socketFD, (int) SIOCGIFCONF, (char *) &ifc) < 0)
return 0;
for (ifr = ifc.ifc_req
if (ioctl (socketFD, (int) SIOCGIFCONF, (char *) &ifc) < 0)
return 0;
for (ifr = ifc.ifc_req
-#if defined
(__bsdi__) || defined
(__NetBSD__)
+#if defined(__NetBSD__)
; (char *)ifr < ifc.ifc_buf + ifc.ifc_len;
ifr = (struct ifreq *)((char *)ifr + sizeof (struct ifreq) +
(ifr->ifr_addr.sa_len > sizeof (ifr->ifr_addr) ?
; (char *)ifr < ifc.ifc_buf + ifc.ifc_len;
ifr = (struct ifreq *)((char *)ifr + sizeof (struct ifreq) +
(ifr->ifr_addr.sa_len > sizeof (ifr->ifr_addr) ?