[BACK]Return to cmd-unbind-key.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / tmux

Diff for /src/usr.bin/tmux/cmd-unbind-key.c between version 1.13 and 1.14

version 1.13, 2012/05/05 17:40:47 version 1.14, 2012/07/10 11:53:01
Line 18 
Line 18 
   
 #include <sys/types.h>  #include <sys/types.h>
   
   #include <stdlib.h>
   
 #include "tmux.h"  #include "tmux.h"
   
 /*  /*
Line 100 
Line 102 
                 while (!RB_EMPTY(mtab->tree)) {                  while (!RB_EMPTY(mtab->tree)) {
                         mbind = RB_ROOT(mtab->tree);                          mbind = RB_ROOT(mtab->tree);
                         RB_REMOVE(mode_key_tree, mtab->tree, mbind);                          RB_REMOVE(mode_key_tree, mtab->tree, mbind);
                         xfree(mbind);                          free(mbind);
                 }                  }
                 return (0);                  return (0);
         }          }
Line 109 
Line 111 
         mtmp.mode = !!args_has(args, 'c');          mtmp.mode = !!args_has(args, 'c');
         if ((mbind = RB_FIND(mode_key_tree, mtab->tree, &mtmp)) != NULL) {          if ((mbind = RB_FIND(mode_key_tree, mtab->tree, &mtmp)) != NULL) {
                 RB_REMOVE(mode_key_tree, mtab->tree, mbind);                  RB_REMOVE(mode_key_tree, mtab->tree, mbind);
                 xfree(mbind);                  free(mbind);
         }          }
         return (0);          return (0);
 }  }

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14