summaryrefslogtreecommitdiff
path: root/x2p/util.c
diff options
context:
space:
mode:
authorJan Dubois <jand@activestate.com>2007-12-24 06:58:20 -0800
committerMarcus Holland-Moritz <mhx-perl@gmx.net>2007-12-25 05:22:39 +0000
commitd34ed59f585350f3dfb4fdf7eca3266cdce428a1 (patch)
treeecd4817ed4aba8b845b88d8d81a1e15784100476 /x2p/util.c
parent1f36f092f89152cd3ffb1cb9d8754c1edcc4ab53 (diff)
downloadperl-d34ed59f585350f3dfb4fdf7eca3266cdce428a1.tar.gz
Remove Nullch etc. from x2p
From: "Jan Dubois" <jand@activestate.com> Message-ID: <0cca01c84680$7afc9170$70f5b450$@com> p4raw-id: //depot/perl@32721
Diffstat (limited to 'x2p/util.c')
-rw-r--r--x2p/util.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/x2p/util.c b/x2p/util.c
index aff3f00873..464dd8f5e9 100644
--- a/x2p/util.c
+++ b/x2p/util.c
@@ -32,7 +32,7 @@ safemalloc(MEM_SIZE size)
fprintf(stderr,"0x%lx: (%05d) malloc %ld bytes\n",(unsigned long)ptr,
an++,(long)size);
#endif
- if (ptr != Nullch)
+ if (ptr != NULL)
return ptr;
else {
fputs(nomem,stdout) FLUSH;
@@ -57,7 +57,7 @@ saferealloc(Malloc_t where, MEM_SIZE size)
fprintf(stderr,"0x%lx: (%05d) realloc %ld bytes\n",(unsigned long)ptr,an++,(long)size);
}
#endif
- if (ptr != Nullch)
+ if (ptr != NULL)
return ptr;
else {
fputs(nomem,stdout) FLUSH;
@@ -127,14 +127,14 @@ instr(char *big, const char *little)
for (t = big; *t; t++) {
for (x=t,s=little; *s; x++,s++) {
if (!*x)
- return Nullch;
+ return NULL;
if (*s != *x)
break;
}
if (!*s)
return t;
}
- return Nullch;
+ return NULL;
}
/* copy a string to a safe spot */