/*
- * $Id: appl.c,v 1.12 2003-03-15 01:34:35 didg Exp $
+ * $Id: appl.c,v 1.13 2003-05-03 20:03:12 didg Exp $
*
* Copyright (c) 1990,1993 Regents of The University of Michigan.
* All Rights Reserved. See COPYRIGHT.
memcpy( &did, ibuf, sizeof( did ));
ibuf += sizeof( did );
- if (( dir = dirlookup( vol, did )) == NULL ) {
+ if (NULL == ( dir = dirlookup( vol, did )) ) {
return afp_errno;
}
memcpy( appltag, ibuf, sizeof( appltag ));
ibuf += sizeof( appltag );
- if (( path = cname( vol, dir, &ibuf )) == NULL ) {
+ if (NULL == ( path = cname( vol, dir, &ibuf )) ) {
return get_afp_errno(AFPERR_PARAM);
}
if ( path_isadir(path) ) {
memcpy( &did, ibuf, sizeof( did ));
ibuf += sizeof( did );
- if (( dir = dirlookup( vol, did )) == NULL ) {
+ if (NULL == ( dir = dirlookup( vol, did )) ) {
return afp_errno;
}
memcpy( creator, ibuf, sizeof( creator ));
ibuf += sizeof( creator );
- if (( path = cname( vol, dir, &ibuf )) == NULL ) {
+ if (NULL == ( path = cname( vol, dir, &ibuf )) ) {
return get_afp_errno(AFPERR_PARAM);
}
if ( path_isadir(path) ) {
/*
- * $Id: desktop.c,v 1.26 2003-04-09 06:05:24 didg Exp $
+ * $Id: desktop.c,v 1.27 2003-05-03 20:03:13 didg Exp $
*
* See COPYRIGHT.
*
memcpy( &vid, ibuf, sizeof( vid ));
ibuf += sizeof( vid );
- if (( vol = getvolbyvid( vid )) == NULL ) {
+ if (NULL == ( vol = getvolbyvid( vid )) ) {
cc = AFPERR_PARAM;
goto addicon_err;
}
/*
- * $Id: directory.c,v 1.71 2003-04-24 17:05:38 didg Exp $
+ * $Id: directory.c,v 1.72 2003-05-03 20:03:13 didg Exp $
*
* Copyright (c) 1990,1993 Regents of The University of Michigan.
* All Rights Reserved. See COPYRIGHT.
case 2 :
case 4 : /* unicode */
- if (( gr = (struct group *)getgrgid( id )) == NULL ) {
+ if (NULL == ( gr = (struct group *)getgrgid( id ))) {
return( AFPERR_NOITEM );
}
name = gr->gr_name;
switch ( sfunc ) {
case 1 : /* unicode */
case 3 :
- if (( pw = (struct passwd *)getpwnam( ibuf )) == NULL ) {
+ if (NULL == ( pw = (struct passwd *)getpwnam( ibuf )) ) {
return( AFPERR_NOITEM );
}
id = pw->pw_uid;
case 2 : /* unicode */
case 4 :
- if (( gr = (struct group *)getgrnam( ibuf )) == NULL ) {
+ if (NULL == ( gr = (struct group *)getgrnam( ibuf ))) {
return( AFPERR_NOITEM );
}
id = gr->gr_gid;
/*
- * $Id: filedir.c,v 1.45 2003-04-20 06:53:40 didg Exp $
+ * $Id: filedir.c,v 1.46 2003-05-03 20:03:13 didg Exp $
*
* Copyright (c) 1990,1993 Regents of The University of Michigan.
* All Rights Reserved. See COPYRIGHT.
if (NULL == ( ddir = dirlookup( vol, did )) ) {
return afp_errno; /* was AFPERR_PARAM */
}
- if (( path = cname( vol, ddir, &ibuf )) == NULL ) {
+ if (NULL == ( path = cname( vol, ddir, &ibuf ))) {
return( AFPERR_NOOBJ );
}
if ( *path->m_name != '\0' ) {