Skip to content

Commit

Permalink
msm8974-common: Fix redefined PROPERTY_VALUE_MAX
Browse files Browse the repository at this point in the history
Change-Id: I5cbc5cc1c42a10570ba84ce068d8e26942f3a81b
  • Loading branch information
moetayuko authored and GuaiYiHu committed Sep 18, 2019
1 parent d25c23f commit dae5d68
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions bluetooth/bdroid_buildcfg.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,20 @@
#ifndef _BDROID_BUILDCFG_H
#define _BDROID_BUILDCFG_H

#include <cutils/properties.h>
#include <stdint.h>
#include <string.h>

#ifdef __cplusplus
extern "C" {
#endif
int property_get(const char *key, char *value, const char *default_value);
#ifdef __cplusplus
}
#endif

static inline const char* BtmGetDefaultName()
{
char product_device[PROPERTY_VALUE_MAX];
char product_device[92];
property_get("ro.product.device", product_device, "");

if (strstr(product_device, "cancro"))
Expand All @@ -38,7 +46,6 @@ static inline const char* BtmGetDefaultName()
// Fallback to ro.product.model
return "";
}
#undef PROPERTY_VALUE_MAX

#define BTM_DEF_LOCAL_NAME BtmGetDefaultName()
#define BLUETOOTH_QTI_SW TRUE
Expand Down

0 comments on commit dae5d68

Please sign in to comment.