OpenSDE Packages Database (without history before r20070)
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.

50 lines
1.6 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../bluez-hcidump/0002-Add-missing-const-to-utility-functions.patch
  5. # Copyright (C) 2011 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. From 54e0c6f46b2a13a66083a98831d515395fb43757 Mon Sep 17 00:00:00 2001
  17. From: =?UTF-8?q?Andr=C3=A9=20Dieb=20Martins?= <andre.dieb@signove.com>
  18. Date: Mon, 31 Jan 2011 16:09:32 -0300
  19. Subject: [PATCH 2/6] Add missing const to utility functions
  20. ---
  21. parser/hci.c | 4 ++--
  22. 1 files changed, 2 insertions(+), 2 deletions(-)
  23. diff --git a/parser/hci.c b/parser/hci.c
  24. index 8299403..fbbebde 100644
  25. --- a/parser/hci.c
  26. +++ b/parser/hci.c
  27. @@ -704,7 +704,7 @@ static char *authentication2str(uint8_t authentication)
  28. }
  29. }
  30. -static char *eventmask2str(uint8_t mask[8])
  31. +static char *eventmask2str(const uint8_t mask[8])
  32. {
  33. int i;
  34. @@ -733,7 +733,7 @@ static char *eventmask2str(uint8_t mask[8])
  35. }
  36. }
  37. -static char *lefeatures2str(uint8_t features[8])
  38. +static char *lefeatures2str(const uint8_t features[8])
  39. {
  40. if (features[0] & 0x01)
  41. return "Link Layer supports LE Encryption";
  42. --
  43. 1.7.2.3