Changeset 7f6a8a2


Ignore:
Timestamp:
Jul 20, 2009, 8:55:25 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:
42c2a80
Parents:
203dcda
Message:
Quash a zephyr 3 warning by adding some missing consts.

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

Legend:

Unmodified
Added
Removed
  • message.c

    rf34dd65 r7f6a8a2  
    5757 * name already exists, replace the old value with the new value
    5858 */
    59 void owl_message_set_attribute(owl_message *m, char *attrname, char *attrvalue)
     59void owl_message_set_attribute(owl_message *m, char *attrname, const char *attrvalue)
    6060{
    6161  int i, j;
     
    233233}
    234234
    235 void owl_message_set_realm(owl_message *m, char *realm)
     235void owl_message_set_realm(owl_message *m, const char *realm)
    236236{
    237237  owl_message_set_attribute(m, "realm", realm);
  • perlglue.xs

    rc6ecf5c r7f6a8a2  
    8080                RETVAL
    8181
    82 char *
     82const char *
    8383zephyr_getrealm()
    8484        CODE:
  • util.c

    r3e8ff1e r7f6a8a2  
    676676/* Strips format characters from a valid utf-8 string. Returns the
    677677   empty string if 'in' does not validate. */
    678 char * owl_strip_format_chars(char *in)
     678char * owl_strip_format_chars(const char *in)
    679679{
    680680  char *r;
    681681  if (g_utf8_validate(in, -1, NULL)) {
    682     char *s, *p;
     682    const char *s, *p;
    683683    r = owl_malloc(strlen(in)+1);
    684684    r[0] = '\0';
     
    714714 * for formatting.
    715715 */
    716 char * owl_validate_or_convert(char *in)
     716char * owl_validate_or_convert(const char *in)
    717717{
    718718  if (g_utf8_validate(in, -1, NULL)) {
     
    729729 * string if it is invalid utf-8.
    730730 */
    731 char * owl_validate_utf8(char *in)
     731char * owl_validate_utf8(const char *in)
    732732{
    733733  char *out;
  • zephyr.c

    r1e550b2 r7f6a8a2  
    180180}
    181181
    182 char *owl_zephyr_get_realm()
     182const char *owl_zephyr_get_realm()
    183183{
    184184#ifdef HAVE_LIBZEPHYR
Note: See TracChangeset for help on using the changeset viewer.