Changeset e19eb97 for pair.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
  • pair.c

    rde1c8a5 re19eb97  
    11#include "owl.h"
    22
    3 void owl_pair_create(owl_pair *p, char *key, char *value) {
     3void owl_pair_create(owl_pair *p, const char *key, char *value) {
    44  p->key=key;
    55  p->value=value;
    66}
    77
    8 void owl_pair_set_key(owl_pair *p, char *key) {
     8void owl_pair_set_key(owl_pair *p, const char *key) {
    99  p->key=key;
    1010}
     
    1414}
    1515
    16 char *owl_pair_get_key(owl_pair *p) {
     16const char *owl_pair_get_key(owl_pair *p) {
    1717  return(p->key);
    1818}
Note: See TracChangeset for help on using the changeset viewer.