Changeset 8262340


Ignore:
Timestamp:
Feb 25, 2003, 12:56:21 PM (18 years ago)
Author:
James M. Kretchmar <kretch@mit.edu>
Branches:
master, barnowl_perlaim, debian, owl, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
ecd5dc5
Parents:
316962a
Message:
Added ZResetAuthentication in a number of places to fix problems with
  stale tickets
Added some hooks for malloc debugging
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • ChangeLog

    r316962a r8262340  
    3030        Zaway now obeys the smart strip variable
    3131        Hacked the build system to not have the -E link problem on Athena
     32        Added ZResetAuthentication in a number of places to fix problems
     33          with stale tickets
     34        Added some hooks for malloc debugging
    3235       
    33361.2.8
  • functions.c

    r7c8060d0 r8262340  
    15341534    strcat(buff, "Color: No.\n");
    15351535  }
    1536  
     1536
     1537  sprintf(buff, "%sMemory Malloced: %i\n", buff, owl_global_get_malloced(&g));
     1538  sprintf(buff, "%sMemory Freed: %i\n", buff, owl_global_get_freed(&g));
     1539  sprintf(buff, "%sMemory In Use: %i\n", buff, owl_global_get_meminuse(&g));
     1540
    15371541  owl_function_popless_text(buff);
    15381542}
  • global.c

    r700c712 r8262340  
    1818  struct hostent *hent;
    1919  char hostname[MAXHOSTNAMELEN];
     20
     21  g->malloced=0;
     22  g->freed=0;
    2023
    2124  gethostname(hostname, MAXHOSTNAMELEN);
     
    607610}
    608611
     612void owl_global_add_to_malloced(owl_global *g, int i) {
     613  g->malloced+=i;
     614}
     615
     616void owl_global_add_to_freed(owl_global *g, int i) {
     617  g->freed+=1;
     618}
     619
     620int owl_global_get_malloced(owl_global *g) {
     621  return(g->malloced);
     622}
     623
     624int owl_global_get_freed(owl_global *g) {
     625  return(g->freed);
     626}
     627
     628int owl_global_get_meminuse(owl_global *g) {
     629  return(g->malloced-g->freed);
     630}
  • message.c

    r985f85b r8262340  
    868868  owl_fmtext_free(&(m->fmtext));
    869869}
    870 
  • owl.h

    rd0d65df r8262340  
    391391  int searchactive;
    392392  int newmsgproc_pid;
     393  int malloced, freed;
    393394  char *searchstring;
    394395  owl_filterelement fe_true;
  • zephyr.c

    r7c8060d0 r8262340  
    99
    1010static const char fileIdent[] = "$Id$";
     11
     12Code_t ZResetAuthentication();
    1113
    1214int owl_zephyr_loadsubs(char *filename) {
     
    2830    strcpy(subsfile, filename);
    2931  }
    30  
     32
     33  ZResetAuthentication();
    3134  /* need to redo this to do chunks, not just bail after 3000 */
    3235  count=0;
     
    9598  }
    9699
     100  ZResetAuthentication();
    97101  /* need to redo this to do chunks, not just bag out after 3000 */
    98102  count=0;
     
    137141void unsuball() {
    138142  int ret;
    139  
     143
     144  ZResetAuthentication();
    140145  ret=ZCancelSubscriptions(0);
    141146  if (ret != ZERR_NONE) {
     
    152157  subs[0].zsub_recipient=recip;
    153158
     159  ZResetAuthentication();
    154160  if (ZSubscribeTo(subs,1,0) != ZERR_NONE) {
    155161    fprintf(stderr, "Error subbing\n");
     
    168174  subs[0].zsub_recipient=recip;
    169175
     176  ZResetAuthentication();
    170177  if (ZUnsubscribeTo(subs,1,0) != ZERR_NONE) {
    171178    fprintf(stderr, "Error unsubbing\n");
     
    246253  memset(&notice, 0, sizeof(notice));
    247254
     255  ZResetAuthentication();
     256 
    248257  notice.z_kind=ACKED;
    249258  notice.z_port=0;
     
    389398 
    390399  strcpy(out, "");
    391 
     400  ZResetAuthentication();
    392401  ret=ZLocateUser(user,&numlocs,auth?ZAUTH:ZNOAUTH);
    393402  if (ret != ZERR_NONE) {
  • zwrite.c

    rced25d1 r8262340  
    66
    77static const char fileIdent[] = "$Id$";
    8 
    9 Code_t ZResetAuthentication();
    108
    119int owl_zwrite_create_and_send_from_line(char *cmd, char *msg) {
     
    227225    send_zephyr(z->opcode, z->zsig, z->class, z->inst, to, msg);
    228226  }
    229 
    230   ZResetAuthentication();
    231227}
    232228
Note: See TracChangeset for help on using the changeset viewer.