Changeset 7f6a8a2 for util.c


Ignore:
Timestamp:
Jul 20, 2009, 8:55:25 PM (15 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, release-1.10, 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>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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;
Note: See TracChangeset for help on using the changeset viewer.