[BACK]Return to options.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / tmux

Diff for /src/usr.bin/tmux/options.c between version 1.1 and 1.2

version 1.1, 2009/06/01 22:58:49 version 1.2, 2009/07/21 19:54:22
Line 83 
Line 83 
         return (o);          return (o);
 }  }
   
 int  void
 options_remove(struct options *oo, const char *name)  options_remove(struct options *oo, const char *name)
 {  {
         struct options_entry    *o;          struct options_entry    *o;
   
         if ((o = options_find1(oo, name)) == NULL)          if ((o = options_find1(oo, name)) == NULL)
                 return (-1);                  return;
   
         SPLAY_REMOVE(options_tree, &oo->tree, o);          SPLAY_REMOVE(options_tree, &oo->tree, o);
         xfree(o->name);          xfree(o->name);
         if (o->type == OPTIONS_STRING)          if (o->type == OPTIONS_STRING)
                 xfree(o->value.string);                  xfree(o->value.string);
         xfree(o);          xfree(o);
         return (0);  
 }  }
   
 void printflike3  void printflike3

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2