diff options
author | kuriyama <kuriyama@FreeBSD.org> | 2009-01-25 22:16:29 +0800 |
---|---|---|
committer | kuriyama <kuriyama@FreeBSD.org> | 2009-01-25 22:16:29 +0800 |
commit | 34146437206a19e0f4f01ac8b6f8f0d84637fa50 (patch) | |
tree | 040d0a4a3965c07607af03d8a2903a5d787c8378 /net-mgmt | |
parent | 20e34d5c642ad778188627ea3e76d90c3c605f60 (diff) | |
download | freebsd-ports-gnome-34146437206a19e0f4f01ac8b6f8f0d84637fa50.tar.gz freebsd-ports-gnome-34146437206a19e0f4f01ac8b6f8f0d84637fa50.tar.zst freebsd-ports-gnome-34146437206a19e0f4f01ac8b6f8f0d84637fa50.zip |
Reduce build warnings.
Diffstat (limited to 'net-mgmt')
-rw-r--r-- | net-mgmt/net-snmp-devel/files/patch-interface.c | 11 | ||||
-rw-r--r-- | net-mgmt/net-snmp-devel/files/patch-iquery.c | 11 | ||||
-rw-r--r-- | net-mgmt/net-snmp-devel/files/patch-snmpd.c | 32 | ||||
-rw-r--r-- | net-mgmt/net-snmp/files/patch-interface.c | 11 | ||||
-rw-r--r-- | net-mgmt/net-snmp/files/patch-iquery.c | 11 | ||||
-rw-r--r-- | net-mgmt/net-snmp/files/patch-snmpd.c | 32 |
6 files changed, 108 insertions, 0 deletions
diff --git a/net-mgmt/net-snmp-devel/files/patch-interface.c b/net-mgmt/net-snmp-devel/files/patch-interface.c new file mode 100644 index 000000000000..871f9e427e5c --- /dev/null +++ b/net-mgmt/net-snmp-devel/files/patch-interface.c @@ -0,0 +1,11 @@ +--- agent/mibgroup/if-mib/data_access/interface.c.orig 2009-01-25 17:49:04.000000000 +0900 ++++ agent/mibgroup/if-mib/data_access/interface.c 2009-01-25 17:49:57.000000000 +0900 +@@ -775,7 +775,7 @@ + netsnmp_conf_if_list *if_ptr = conf_list, *if_next; + while (if_ptr) { + if_next = if_ptr->next; +- free(if_ptr->name); ++ free((void*)if_ptr->name); + free(if_ptr); + if_ptr = if_next; + } diff --git a/net-mgmt/net-snmp-devel/files/patch-iquery.c b/net-mgmt/net-snmp-devel/files/patch-iquery.c new file mode 100644 index 000000000000..e6325ba4c2f9 --- /dev/null +++ b/net-mgmt/net-snmp-devel/files/patch-iquery.c @@ -0,0 +1,11 @@ +--- agent/mibgroup/utilities/iquery.c.orig 2009-01-25 17:44:17.000000000 +0900 ++++ agent/mibgroup/utilities/iquery.c 2009-01-25 17:47:04.000000000 +0900 +@@ -186,7 +186,7 @@ + ss->securityEngineIDLen = engIDLen; + if ( version == SNMP_VERSION_3 ) { + ss->securityNameLen = strlen(secName); +- memdup(&(ss->securityName), (u_char*)secName, ss->securityNameLen); ++ memdup((u_char**)&(ss->securityName), (u_char*)secName, ss->securityNameLen); + } else { + memdup( &(ss->community), secName, strlen(secName)); + ss->community_len = strlen(secName); diff --git a/net-mgmt/net-snmp-devel/files/patch-snmpd.c b/net-mgmt/net-snmp-devel/files/patch-snmpd.c new file mode 100644 index 000000000000..c7d6d4ed06c8 --- /dev/null +++ b/net-mgmt/net-snmp-devel/files/patch-snmpd.c @@ -0,0 +1,32 @@ +--- agent/snmpd.c.orig 2009-01-25 17:25:26.000000000 +0900 ++++ agent/snmpd.c 2009-01-25 17:36:52.000000000 +0900 +@@ -426,6 +426,9 @@ + char *cptr, **argvptr; + char *pid_file = NULL; + char option_compatability[] = "-Le"; ++#if HAVE_UNISTD_H ++ const char *ccptr; ++#endif + #if HAVE_GETPID + int fd; + FILE *PID; +@@ -960,8 +963,8 @@ + #endif + + #if HAVE_UNISTD_H +- cptr = get_persistent_directory(); +- mkdirhier( cptr, NETSNMP_AGENT_DIRECTORY_MODE, 0 ); ++ ccptr = get_persistent_directory(); ++ mkdirhier( ccptr, NETSNMP_AGENT_DIRECTORY_MODE, 0 ); + + uid = netsnmp_ds_get_int(NETSNMP_DS_APPLICATION_ID, + NETSNMP_DS_AGENT_USERID); +@@ -970,7 +973,7 @@ + + #ifdef HAVE_CHOWN + if ( uid != 0 || gid != 0 ) +- chown( cptr, uid, gid ); ++ chown( ccptr, uid, gid ); + #endif + + #ifdef HAVE_SETGID diff --git a/net-mgmt/net-snmp/files/patch-interface.c b/net-mgmt/net-snmp/files/patch-interface.c new file mode 100644 index 000000000000..871f9e427e5c --- /dev/null +++ b/net-mgmt/net-snmp/files/patch-interface.c @@ -0,0 +1,11 @@ +--- agent/mibgroup/if-mib/data_access/interface.c.orig 2009-01-25 17:49:04.000000000 +0900 ++++ agent/mibgroup/if-mib/data_access/interface.c 2009-01-25 17:49:57.000000000 +0900 +@@ -775,7 +775,7 @@ + netsnmp_conf_if_list *if_ptr = conf_list, *if_next; + while (if_ptr) { + if_next = if_ptr->next; +- free(if_ptr->name); ++ free((void*)if_ptr->name); + free(if_ptr); + if_ptr = if_next; + } diff --git a/net-mgmt/net-snmp/files/patch-iquery.c b/net-mgmt/net-snmp/files/patch-iquery.c new file mode 100644 index 000000000000..e6325ba4c2f9 --- /dev/null +++ b/net-mgmt/net-snmp/files/patch-iquery.c @@ -0,0 +1,11 @@ +--- agent/mibgroup/utilities/iquery.c.orig 2009-01-25 17:44:17.000000000 +0900 ++++ agent/mibgroup/utilities/iquery.c 2009-01-25 17:47:04.000000000 +0900 +@@ -186,7 +186,7 @@ + ss->securityEngineIDLen = engIDLen; + if ( version == SNMP_VERSION_3 ) { + ss->securityNameLen = strlen(secName); +- memdup(&(ss->securityName), (u_char*)secName, ss->securityNameLen); ++ memdup((u_char**)&(ss->securityName), (u_char*)secName, ss->securityNameLen); + } else { + memdup( &(ss->community), secName, strlen(secName)); + ss->community_len = strlen(secName); diff --git a/net-mgmt/net-snmp/files/patch-snmpd.c b/net-mgmt/net-snmp/files/patch-snmpd.c new file mode 100644 index 000000000000..c7d6d4ed06c8 --- /dev/null +++ b/net-mgmt/net-snmp/files/patch-snmpd.c @@ -0,0 +1,32 @@ +--- agent/snmpd.c.orig 2009-01-25 17:25:26.000000000 +0900 ++++ agent/snmpd.c 2009-01-25 17:36:52.000000000 +0900 +@@ -426,6 +426,9 @@ + char *cptr, **argvptr; + char *pid_file = NULL; + char option_compatability[] = "-Le"; ++#if HAVE_UNISTD_H ++ const char *ccptr; ++#endif + #if HAVE_GETPID + int fd; + FILE *PID; +@@ -960,8 +963,8 @@ + #endif + + #if HAVE_UNISTD_H +- cptr = get_persistent_directory(); +- mkdirhier( cptr, NETSNMP_AGENT_DIRECTORY_MODE, 0 ); ++ ccptr = get_persistent_directory(); ++ mkdirhier( ccptr, NETSNMP_AGENT_DIRECTORY_MODE, 0 ); + + uid = netsnmp_ds_get_int(NETSNMP_DS_APPLICATION_ID, + NETSNMP_DS_AGENT_USERID); +@@ -970,7 +973,7 @@ + + #ifdef HAVE_CHOWN + if ( uid != 0 || gid != 0 ) +- chown( cptr, uid, gid ); ++ chown( ccptr, uid, gid ); + #endif + + #ifdef HAVE_SETGID |