Changeset e19eb97 for logging.c


Ignore:
Timestamp:
Aug 15, 2009, 7:08:18 PM (12 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
1077891a
Parents:
fa4562c
git-author:
Anders Kaseorg <andersk@mit.edu> (08/04/09 02:37:51)
git-committer:
Anders Kaseorg <andersk@mit.edu> (08/15/09 19:08:18)
Message:
Add const qualifiers for char * and void *.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • logging.c

    r65b2173 re19eb97  
    105105}
    106106
    107 void owl_log_append(owl_message *m, char *filename) {
     107void owl_log_append(owl_message *m, const char *filename) {
    108108    FILE *file;
    109109    file=fopen(filename, "a");
     
    171171
    172172
    173 void owl_log_outgoing_zephyr_error(char *to, char *text)
     173void owl_log_outgoing_zephyr_error(const char *to, const char *text)
    174174{
    175175  FILE *file;
     
    230230{
    231231  char filename[MAXPATHLEN], allfilename[MAXPATHLEN], *logpath;
    232   char *from=NULL;
     232  const char *from=NULL;
    233233  char *frombuff=NULL;
    234234  int len, ch, i, personal;
     
    243243  } else if (owl_message_is_type_jabber(m)) {
    244244    /* This needs to be fixed to handle groupchat */
    245     char* msgtype = owl_message_get_attribute_value(m,"jtype");
     245    const char* msgtype = owl_message_get_attribute_value(m,"jtype");
    246246    if (msgtype && !strcmp(msgtype,"groupchat")) {
    247247      personal = 0;
Note: See TracChangeset for help on using the changeset viewer.