Changeset c230bc1


Ignore:
Timestamp:
Mar 7, 2010, 10:26:22 PM (14 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, release-1.10, release-1.6, release-1.7, release-1.8, release-1.9
Children:
a44cd91
Parents:
8d4b521
git-author:
Anders Kaseorg <andersk@mit.edu> (02/27/10 22:35:14)
git-committer:
Anders Kaseorg <andersk@mit.edu> (03/07/10 22:26:22)
Message:
Rename owl_zwrite_free to owl_zwrite_cleanup.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Reviewed-by: Nelson Elhage <nelhage@mit.edu>
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • commands.c

    r1672650 rc230bc1  
    18621862  if (owl_zwrite_is_message_set(&z)) {
    18631863    owl_function_zwrite(buff, NULL);
    1864     owl_zwrite_free(&z);
     1864    owl_zwrite_cleanup(&z);
    18651865    return (NULL);
    18661866  }
    1867   owl_zwrite_free(&z);
     1867  owl_zwrite_cleanup(&z);
    18681868
    18691869  if (argc < 2) {
     
    19731973  if (owl_zwrite_is_message_set(&z)) {
    19741974    owl_function_zcrypt(buff, NULL);
    1975     owl_zwrite_free(&z);
     1975    owl_zwrite_cleanup(&z);
    19761976    return (NULL);
    19771977  }
    1978   owl_zwrite_free(&z);
     1978  owl_zwrite_cleanup(&z);
    19791979
    19801980  if (argc < 2) {
  • functions.c

    r8d4b521 rc230bc1  
    235235 
    236236  owl_message_create_from_zwrite(m, &zw, body);
    237   owl_zwrite_free(&zw);
     237  owl_zwrite_cleanup(&zw);
    238238
    239239  return(m);
     
    326326  if (ret) {
    327327    owl_function_error("Error in zwrite arguments");
    328     owl_zwrite_free(&z);
     328    owl_zwrite_cleanup(&z);
    329329    return;
    330330  }
     
    334334    owl_zwrite_send_ping(&z);
    335335  }
    336   owl_zwrite_free(&z);
     336  owl_zwrite_cleanup(&z);
    337337
    338338  owl_function_write_setup(line, "zephyr", &owl_callback_zwrite);
     
    391391
    392392  /* free the zwrite */
    393   owl_zwrite_free(&z);
     393  owl_zwrite_cleanup(&z);
    394394}
    395395
     
    417417    owl_function_error("Error in zcrypt, possibly no key found.  Message not sent.");
    418418    owl_function_beep();
    419     owl_zwrite_free(&z);
     419    owl_zwrite_cleanup(&z);
    420420    return;
    421421  }
     
    444444  /* free the zwrite */
    445445  owl_free(cryptmsg);
    446   owl_zwrite_free(&z);
     446  owl_zwrite_cleanup(&z);
    447447}
    448448
  • zephyr.c

    r46c7f5b rc230bc1  
    815815      owl_log_outgoing_zephyr_error(&zw, buff);
    816816
    817       owl_zwrite_free(&zw);
     817      owl_zwrite_cleanup(&zw);
    818818      owl_free(tmp);
    819819    }
  • zwrite.c

    r8c59178 rc230bc1  
    271271  owl_zwrite_populate_zsig(&z);
    272272  owl_zwrite_send_message(&z);
    273   owl_zwrite_free(&z);
     273  owl_zwrite_cleanup(&z);
    274274  return(0);
    275275}
     
    350350}
    351351
    352 void owl_zwrite_free(owl_zwrite *z)
     352void owl_zwrite_cleanup(owl_zwrite *z)
    353353{
    354354  owl_list_cleanup(&(z->recips), &owl_free);
Note: See TracChangeset for help on using the changeset viewer.