summaryrefslogtreecommitdiff
path: root/lib/alloca.c
diff options
context:
space:
mode:
authorClint Adams <clint@debian.org>2021-08-31 08:53:23 -0400
committerClint Adams <clint@debian.org>2021-08-31 08:53:23 -0400
commitc50de48f2ed0b9476c3389fd07a85a5e8be798e2 (patch)
tree80f254d789336981f5ea660741739f70d46589d5 /lib/alloca.c
parent637a2e292881341dde845545517b0ed3d3ccfc94 (diff)
New upstream version 4.8
Diffstat (limited to 'lib/alloca.c')
-rw-r--r--lib/alloca.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/alloca.c b/lib/alloca.c
index ee0f018..d0476d5 100644
--- a/lib/alloca.c
+++ b/lib/alloca.c
@@ -350,16 +350,16 @@ i00afunc (long *address)
/* There must be at least one stack segment. Therefore it is
a fatal error if "trailer" is null. */
- if (trailer == 0)
+ if (trailer == NULL)
abort ();
/* Discard segments that do not contain our argument address. */
- while (trailer != 0)
+ while (trailer != NULL)
{
block = (long *) trailer->this_address;
size = trailer->this_size;
- if (block == 0 || size == 0)
+ if (block == NULL || size == 0)
abort ();
trailer = (struct stk_trailer *) trailer->link;
if ((block <= address) && (address < (block + size)))
@@ -371,7 +371,7 @@ i00afunc (long *address)
result = address - block;
- if (trailer == 0)
+ if (trailer == NULL)
{
return result;
}
@@ -383,7 +383,7 @@ i00afunc (long *address)
result += trailer->this_size;
trailer = (struct stk_trailer *) trailer->link;
}
- while (trailer != 0);
+ while (trailer != NULL);
/* We are done. Note that if you present a bogus address (one
not in any segment), you will get a different number back, formed