Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(443)

Unified Diff: binutils/binutils/dlltool.c

Issue 3018030: [binutils] Bump binutils to 2.20.1 (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/nacl-toolchain.git
Patch Set: Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « binutils/binutils/aclocal.m4 ('k') | binutils/binutils/doc/Makefile.in » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: binutils/binutils/dlltool.c
diff --git a/binutils/binutils/dlltool.c b/binutils/binutils/dlltool.c
index 71fd9932c3e21eb4c64ce3081f4842e2313321b1..897790d9e103110a3390866b8812dec25a13c7d6 100644
--- a/binutils/binutils/dlltool.c
+++ b/binutils/binutils/dlltool.c
@@ -3162,13 +3162,15 @@ gen_lib_file (int delay)
static void
dll_name_list_append (dll_name_list_type * list, bfd_byte * data)
{
+ dll_name_list_node_type * entry;
+
/* Error checking. */
if (! list || ! list->tail)
return;
/* Allocate new node. */
- dll_name_list_node_type * entry =
- (dll_name_list_node_type *) xmalloc (sizeof (dll_name_list_node_type));
+ entry = ((dll_name_list_node_type *)
+ xmalloc (sizeof (dll_name_list_node_type)));
/* Initialize its values. */
entry->dllname = xstrdup ((char *) data);
@@ -3184,12 +3186,14 @@ dll_name_list_append (dll_name_list_type * list, bfd_byte * data)
static int
dll_name_list_count (dll_name_list_type * list)
{
+ dll_name_list_node_type * p;
+ int count = 0;
+
/* Error checking. */
if (! list || ! list->head)
return 0;
- int count = 0;
- dll_name_list_node_type * p = list->head;
+ p = list->head;
while (p && p->next)
{
@@ -3204,11 +3208,13 @@ dll_name_list_count (dll_name_list_type * list)
static void
dll_name_list_print (dll_name_list_type * list)
{
+ dll_name_list_node_type * p;
+
/* Error checking. */
if (! list || ! list->head)
return;
- dll_name_list_node_type * p = list->head;
+ p = list->head;
while (p && p->next && p->next->dllname && *(p->next->dllname))
{
« no previous file with comments | « binutils/binutils/aclocal.m4 ('k') | binutils/binutils/doc/Makefile.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698