[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Libunwind-devel] [PATCH]libunwind-0.98.6-pointer-comparison.patch
From: |
Belisko Marek |
Subject: |
[Libunwind-devel] [PATCH]libunwind-0.98.6-pointer-comparison.patch |
Date: |
Fri, 16 Oct 2009 11:01:04 +0200 |
Hi,
following patch should fix compiler warning:
Index: tests/Gtest-dyn1.c
===================================================================
--- tests/Gtest-dyn1.c.orig
+++ tests/Gtest-dyn1.c
@@ -106,7 +106,7 @@ sighandler (int signal)
name[0] = '\0';
off[0] = '\0';
if (unw_get_proc_name (&cursor, name, sizeof (name), &offset) == 0
- && off > 0)
+ && offset > 0)
snprintf (off, sizeof (off), "+0x%lx", (long) offset);
if (verbose)
printf ("ip = %lx <%s%s>\n", (long) ip, name, off);
BR,
Marek
--
as simple and primitive as possible
-------------------------------------------------
Marek Belisko - OPEN-NANDRA
Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
Tel: +421 915 052 184
skype: marekwhite
icq: 290551086
web: http://open-nandra.com
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Libunwind-devel] [PATCH]libunwind-0.98.6-pointer-comparison.patch,
Belisko Marek <=