register const char *cp;
struct in_addr *addr;
{
- register unsigned long val;
+ register U32 val;
register int base;
register char c;
int nparts;
unsigned int parts[4];
register unsigned int *pp = parts;
+ if (!cp)
+ return 0;
for (;;) {
/*
* Collect number up to ``.''.