Changeset 2c14f40 for zephyr.c


Ignore:
Timestamp:
Aug 8, 2009, 12:36:05 AM (12 years ago)
Author:
Geoffrey Thomas <geofft@mit.edu>
Branches:
master, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
f12d199
Parents:
fdc0c47
git-author:
Geoffrey Thomas <geofft@mit.edu> (08/07/09 23:58:48)
git-committer:
Geoffrey Thomas <geofft@mit.edu> (08/08/09 00:36:05)
Message:
owl_function_info: Explain the auth status better.

Signed-off-by: Geoffrey Thomas <geofft@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • zephyr.c

    r5603d72 r2c14f40  
    10761076/* return auth string */
    10771077#ifdef HAVE_LIBZEPHYR
    1078 char *owl_zephyr_get_authstr(ZNotice_t *n)
    1079 {
    1080 
    1081   if (!n) return("UNKNOWN");
    1082 
    1083   if (n->z_auth == ZAUTH_FAILED) {
     1078char *owl_zephyr_get_authstr(int a)
     1079{
     1080
     1081  if (a == ZAUTH_FAILED) {
    10841082    return ("FAILED");
    1085   } else if (n->z_auth == ZAUTH_NO) {
     1083  } else if (a == ZAUTH_NO) {
    10861084    return ("NO");
    1087   } else if (n->z_auth == ZAUTH_YES) {
     1085  } else if (a == ZAUTH_YES) {
    10881086    return ("YES");
    10891087  } else {
    10901088    return ("UNKNOWN");
    1091   }           
     1089  }
    10921090}
    10931091#else
Note: See TracChangeset for help on using the changeset viewer.