|
@@ -341,7 +341,7 @@ static void *bsd_alloc (struct isdn_ppp_comp_data *data)
|
|
|
* Allocate space for the dictionary. This may be more than one page in
|
|
|
* length.
|
|
|
*/
|
|
|
- db->dict = (struct bsd_dict *) vmalloc (hsize * sizeof (struct bsd_dict));
|
|
|
+ db->dict = vmalloc(hsize * sizeof(struct bsd_dict));
|
|
|
if (!db->dict) {
|
|
|
bsd_free (db);
|
|
|
return NULL;
|
|
@@ -354,8 +354,7 @@ static void *bsd_alloc (struct isdn_ppp_comp_data *data)
|
|
|
if (!decomp)
|
|
|
db->lens = NULL;
|
|
|
else {
|
|
|
- db->lens = (unsigned short *) vmalloc ((maxmaxcode + 1) *
|
|
|
- sizeof (db->lens[0]));
|
|
|
+ db->lens = vmalloc((maxmaxcode + 1) * sizeof(db->lens[0]));
|
|
|
if (!db->lens) {
|
|
|
bsd_free (db);
|
|
|
return (NULL);
|