OSSP CVS Repository

ossp - Difference in ossp-pkg/uuid/uuid_mac.c versions 1.6 and 1.7
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/uuid/uuid_mac.c 1.6 -> 1.7

--- uuid_mac.c   2005/01/13 08:50:11     1.6
+++ uuid_mac.c   2005/03/29 19:01:41     1.7
@@ -81,7 +81,7 @@
 #define FALSE 0
 #endif
 #ifndef TRUE
-#define TRUE !FALSE
+#define TRUE (/*lint -save -e506*/ !FALSE /*lint -restore*/)
 #endif
 
 /* return the Media Access Control (MAC) address of
@@ -107,7 +107,7 @@
             if (ifap->ifa_addr != NULL && ifap->ifa_addr->sa_family == AF_LINK) {
                 sdl = (const struct sockaddr_dl *)(void *)ifap->ifa_addr;
                 ucp = (unsigned char *)(sdl->sdl_data + sdl->sdl_nlen);
-                if (ucp != NULL && sdl->sdl_alen > 0) {
+                if (sdl->sdl_alen > 0) {
                     for (i = 0; i < MAC_LEN && i < sdl->sdl_alen; i++, ucp++)
                         data_ptr[i] = (unsigned char)(*ucp & 0xff);
                     freeifaddrs(ifap_head);

CVSTrac 2.0.1