/*
- * $Id: nbpunrgstr.c,v 1.8 2009-10-14 01:38:28 didg Exp $
+ * $Id: nbpunrgstr.c,v 1.10 2009-10-29 11:35:58 didg Exp $
*
* Copyright (c) 1990,1991 Regents of The University of Michigan.
* All Rights Reserved.
{
char *p;
- if (( p = strrchr( av0, '/' )) == 0 ) {
+ if (( p = strrchr( av0, '/' )) == NULL ) {
p = av0;
} else {
p++;
int main(int ac, char **av)
{
- char *Obj = 0, *Type = 0, *Zone = 0;
- char *convname = 0;
+ char *Obj = NULL, *Type = NULL, *Zone = NULL;
+ char *convname = NULL;
struct at_addr addr;
int c;
charset_t chMac = CH_MAC;
/* Convert the name */
if ((size_t)(-1) == convert_string_allocate(CH_UNIX, chMac,
- av[optind], strlen(av[optind]), &convname))
+ av[optind], -1, &convname))
convname = av[optind];
/*