aboutsummaryrefslogtreecommitdiff
path: root/utils/hwinfo/patches/100_remove_malloc_h_headers_usage.patch
blob: b97f7f4580368507ade973ab6c307b819796c373 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
https://github.com/openSUSE/hwinfo/pull/110

From 53d6a80f6645e5986a13a8475a2b114dfb3a9acc Mon Sep 17 00:00:00 2001
From: "Sergey V. Lobanov" <sergey@lobanov.in>
Date: Tue, 18 Jan 2022 02:24:25 +0300
Subject: [PATCH] remove malloc.h headers usage

malloc.h was deprecated many years ago, stdlib.h should be used
(stdlib.h is already used)

This patch removes malloc.h usage to build host-tools (isdn_cdb,
mk_isdnhwdb) on systems without malloc.h header

Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>
---
 src/isdn/cdb/cdb_read.h    | 1 -
 src/isdn/cdb/isdn_cdb.c    | 1 -
 src/isdn/cdb/mk_isdnhwdb.c | 1 -
 3 files changed, 3 deletions(-)

--- a/src/isdn/cdb/cdb_read.h
+++ b/src/isdn/cdb/cdb_read.h
@@ -1,6 +1,5 @@
 #include <stdio.h>
 #include <stdlib.h>
-#include <malloc.h>
 #include <string.h>
 #include <time.h>
 #include "isdn_cdb_def.h"
--- a/src/isdn/cdb/isdn_cdb.c
+++ b/src/isdn/cdb/isdn_cdb.c
@@ -1,6 +1,5 @@
 #include <stdio.h>
 #include <stdlib.h>
-#include <malloc.h>
 #include <string.h>
 #include <time.h>
 #include "lex.yy.c"
--- a/src/isdn/cdb/mk_isdnhwdb.c
+++ b/src/isdn/cdb/mk_isdnhwdb.c
@@ -1,6 +1,5 @@
 #include <stdio.h>
 #include <stdlib.h>
-#include <malloc.h>
 #include <string.h>
 #include <time.h>
 #include "lex.yy.c"