~martin-decky/helenos/rcu

« back to all changes in this revision

Viewing changes to uspace/app/trace/proto.c

  • Committer: Martin Decky
  • Date: 2010-02-25 19:11:25 UTC
  • Revision ID: martin@uranus.dsrg.hide.ms.mff.cuni.cz-20100225191125-kbzwwihgu0uj0dss
make sure that all statically allocated strings are declared as "const char *"
and are treated as read-only

Show diffs side-by-side

added added

removed removed

Lines of Context:
156
156
        return sp->proto;
157
157
}
158
158
 
159
 
static void proto_struct_init(proto_t *proto, char *name)
 
159
static void proto_struct_init(proto_t *proto, const char *name)
160
160
{
161
161
        proto->name = name;
162
162
        hash_table_create(&proto->method_oper, SRV_PROTO_TABLE_CHAINS, 1,
163
163
            &method_oper_ops);
164
164
}
165
165
 
166
 
proto_t *proto_new(char *name)
 
166
proto_t *proto_new(const char *name)
167
167
{
168
168
        proto_t *p;
169
169
 
205
205
        return mo->oper;
206
206
}
207
207
 
208
 
static void oper_struct_init(oper_t *oper, char *name)
 
208
static void oper_struct_init(oper_t *oper, const char *name)
209
209
{
210
210
        oper->name = name;
211
211
}
212
212
 
213
 
oper_t *oper_new(char *name, int argc, val_type_t *arg_types,
 
213
oper_t *oper_new(const char *name, int argc, val_type_t *arg_types,
214
214
    val_type_t rv_type, int respc, val_type_t *resp_types)
215
215
{
216
216
        oper_t *o;