summaryrefslogtreecommitdiffstats
path: root/sbin/atm/ilmid
diff options
context:
space:
mode:
authormdodd <mdodd@FreeBSD.org>2002-10-02 06:24:19 +0000
committermdodd <mdodd@FreeBSD.org>2002-10-02 06:24:19 +0000
commit082aa2deffda481f9c15bf5bc01ff1127f87933c (patch)
treeaf424bbf9590237813fc042415722a8c24acf933 /sbin/atm/ilmid
parent814e4146005f49befa717eb2fcaf4cc4f3740f9a (diff)
downloadFreeBSD-src-082aa2deffda481f9c15bf5bc01ff1127f87933c.zip
FreeBSD-src-082aa2deffda481f9c15bf5bc01ff1127f87933c.tar.gz
Cast malloc() assignments.
Diffstat (limited to 'sbin/atm/ilmid')
-rw-r--r--sbin/atm/ilmid/ilmid.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sbin/atm/ilmid/ilmid.c b/sbin/atm/ilmid/ilmid.c
index ed5673f..2a194c0 100644
--- a/sbin/atm/ilmid/ilmid.c
+++ b/sbin/atm/ilmid/ilmid.c
@@ -841,7 +841,7 @@ parse_oids ( h, bp )
len--;
/* Create new Variable instance */
- if ( ( var = malloc(sizeof(Variable)) ) == NULL )
+ if ( ( var = (Variable *)malloc(sizeof(Variable)) ) == NULL )
{
*bp = bufp;
return;
@@ -925,7 +925,7 @@ asn_get_header ( bufp )
/*
* Allocate memory to hold the SNMP header
*/
- if ( ( h = malloc(sizeof(Snmp_Header)) ) == NULL )
+ if ( ( h = (Snmp_Header *)malloc(sizeof(Snmp_Header)) ) == NULL )
return ( (Snmp_Header *)NULL );
/*
@@ -1477,7 +1477,7 @@ build_cold_start()
Snmp_Header *hdr;
Variable *var;
- hdr = malloc(sizeof(Snmp_Header));
+ hdr = (Snmp_Header *)malloc(sizeof(Snmp_Header));
if (hdr == NULL) {
fprintf(stderr, "malloc() failed in %s()\n", __func__);
exit(1);
@@ -1518,7 +1518,7 @@ build_generic_header()
{
Snmp_Header *hdr;
- hdr = malloc(sizeof(Snmp_Header));
+ hdr = (Snmp_Header *)malloc(sizeof(Snmp_Header));
if (hdr == NULL) {
fprintf(stderr, "malloc() failed in %s()\n", __func__);
exit(1);
@@ -1957,7 +1957,7 @@ set_address ( hdr, intf )
PDU_Header = build_generic_header();
- PDU_Header->head = malloc(sizeof(Variable));
+ PDU_Header->head = (Variable *)malloc(sizeof(Variable));
if (PDU_Header->head == NULL) {
fprintf(stderr, "malloc() failed in %s()\n", __func__);
exit(1);
@@ -2252,7 +2252,7 @@ ilmi_do_state ()
*/
PDU_Header = build_generic_header();
- PDU_Header->head = malloc(sizeof(Variable));
+ PDU_Header->head = (Variable *)malloc(sizeof(Variable));
if (PDU_Header->head == NULL) {
fprintf(stderr, "malloc() failed in %s()\n", __func__);
exit(1);
OpenPOWER on IntegriCloud