You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.2 KiB

  1. https://github.com/openSUSE/hwinfo/pull/110
  2. From 53d6a80f6645e5986a13a8475a2b114dfb3a9acc Mon Sep 17 00:00:00 2001
  3. From: "Sergey V. Lobanov" <sergey@lobanov.in>
  4. Date: Tue, 18 Jan 2022 02:24:25 +0300
  5. Subject: [PATCH] remove malloc.h headers usage
  6. malloc.h was deprecated many years ago, stdlib.h should be used
  7. (stdlib.h is already used)
  8. This patch removes malloc.h usage to build host-tools (isdn_cdb,
  9. mk_isdnhwdb) on systems without malloc.h header
  10. Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>
  11. ---
  12. src/isdn/cdb/cdb_read.h | 1 -
  13. src/isdn/cdb/isdn_cdb.c | 1 -
  14. src/isdn/cdb/mk_isdnhwdb.c | 1 -
  15. 3 files changed, 3 deletions(-)
  16. --- a/src/isdn/cdb/cdb_read.h
  17. +++ b/src/isdn/cdb/cdb_read.h
  18. @@ -1,6 +1,5 @@
  19. #include <stdio.h>
  20. #include <stdlib.h>
  21. -#include <malloc.h>
  22. #include <string.h>
  23. #include <time.h>
  24. #include "isdn_cdb_def.h"
  25. --- a/src/isdn/cdb/isdn_cdb.c
  26. +++ b/src/isdn/cdb/isdn_cdb.c
  27. @@ -1,6 +1,5 @@
  28. #include <stdio.h>
  29. #include <stdlib.h>
  30. -#include <malloc.h>
  31. #include <string.h>
  32. #include <time.h>
  33. #include "lex.yy.c"
  34. --- a/src/isdn/cdb/mk_isdnhwdb.c
  35. +++ b/src/isdn/cdb/mk_isdnhwdb.c
  36. @@ -1,6 +1,5 @@
  37. #include <stdio.h>
  38. #include <stdlib.h>
  39. -#include <malloc.h>
  40. #include <string.h>
  41. #include <time.h>
  42. #include "lex.yy.c"