Changeset 8262340 for global.c


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
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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}
Note: See TracChangeset for help on using the changeset viewer.