Changeset 31e48a3 for functions.c


Ignore:
Timestamp:
Jun 1, 2003, 2:42:58 PM (21 years ago)
Author:
James M. Kretchmar <kretch@mit.edu>
Branches:
master, barnowl_perlaim, debian, owl, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
df0d93a
Parents:
0ff8fb57
Message:
Do ZResetAuthentication() before zlog_in and zlog_out as well
File:
1 edited

Legend:

Unmodified
Added
Removed
  • functions.c

    r0ff8fb57 r31e48a3  
    693693  /* zlog out if we need to */
    694694  if (owl_global_is_shutdownlogout(&g)) {
    695     owl_function_zlog_out();
     695    owl_zephyr_zlog_out();
    696696  }
    697697
     
    711711  owl_function_debugmsg("Quitting Owl");
    712712  exit(0);
    713 }
    714 
    715 
    716 void owl_function_zlog_in()
    717 {
    718   char *exposure, *eset;
    719   int ret;
    720 
    721   eset=EXPOSE_REALMVIS;
    722   exposure=ZGetVariable("exposure");
    723   if (exposure==NULL) {
    724     eset=EXPOSE_REALMVIS;
    725   } else if (!strcasecmp(exposure,EXPOSE_NONE)) {
    726     eset = EXPOSE_NONE;
    727   } else if (!strcasecmp(exposure,EXPOSE_OPSTAFF)) {
    728     eset = EXPOSE_OPSTAFF;
    729   } else if (!strcasecmp(exposure,EXPOSE_REALMVIS)) {
    730     eset = EXPOSE_REALMVIS;
    731   } else if (!strcasecmp(exposure,EXPOSE_REALMANN)) {
    732     eset = EXPOSE_REALMANN;
    733   } else if (!strcasecmp(exposure,EXPOSE_NETVIS)) {
    734     eset = EXPOSE_NETVIS;
    735   } else if (!strcasecmp(exposure,EXPOSE_NETANN)) {
    736     eset = EXPOSE_NETANN;
    737   }
    738    
    739   ret=ZSetLocation(eset);
    740   if (ret != ZERR_NONE) {
    741     /*
    742       char buff[LINE];
    743       sprintf(buff, "Error setting location: %s", error_message(ret));
    744       owl_function_makemsg(buff);
    745     */
    746   }
    747 }
    748 
    749 void owl_function_zlog_out()
    750 {
    751   int ret;
    752  
    753   ret=ZUnsetLocation();
    754   if (ret != ZERR_NONE) {
    755     /*
    756       char buff[LINE];
    757       sprintf(buff, "Error unsetting location: %s", error_message(ret));
    758       owl_function_makemsg(buff);
    759     */
    760   }
    761713}
    762714
Note: See TracChangeset for help on using the changeset viewer.