Commit a111601d7342847875ffb25dccd328fe946255b2

  • avatar
  • Tick Chen (Committer)
  • Tue Aug 04 14:27:21 CEST 2009
  • avatar
  • Jim Huang (Author)
  • Tue Aug 04 08:51:25 CEST 2009
Fix build with gcc 4.4

Signed-off-by: Tick Chen <tick@0xlab.org>
  
163163 // sig = "()I"
164164
165165 // Find the first parenthesis, the start of the signature.
166 char *paren = strchr(name, '(');
166 char *paren = (char *) strchr(name, '(');
167167
168168 // If not found, then add the original name.
169169 if (paren == NULL) {
180180 *paren = 0;
181181
182182 // Search for the last period, the start of the method name
183 char *dot = strrchr(name, '.');
183 char *dot = (char *) strrchr(name, '.');
184184
185185 // If not found, then add the original name.
186186 if (dot == NULL || dot == name) {
  
10091009// be freed by the caller after it is no longer needed.
10101010static char *ExtractDexPathFromMmap(const char *mmap_path)
10111011{
1012 char *end = rindex(mmap_path, '@');
1012 const char *end = rindex(mmap_path, '@');
10131013 if (end == NULL)
10141014 return NULL;
1015 char *start = rindex(mmap_path, '/');
1015 const char *start = rindex(mmap_path, '/');
10161016 if (start == NULL)
10171017 return NULL;
10181018 int len = end - start;