Skip to content

Commit

Permalink
Make return value of ad_forcetgetid() more clear
Browse files Browse the repository at this point in the history
  • Loading branch information
anodos325 committed Apr 12, 2022
1 parent aa6881d commit 643fb99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libatalk/adouble/ad_attr.c
Original file line number Diff line number Diff line change
Expand Up @@ -227,15 +227,15 @@ uint32_t ad_forcegetid (struct adouble *adp)
char *ade = NULL;
ade = ad_entry(adp, ADEID_PRIVID);
if (ade == NULL) {
return 0;
return CNID_INVALID;
}
memcpy(&aint, ade, sizeof(aint));
if (adp->ad_vers == AD_VERSION2)
return aint;
else
return ntohl(aint);
}
return 0;
return CNID_INVALID;
}

/* -----------------
Expand Down

0 comments on commit 643fb99

Please sign in to comment.