Constifixation of attribute argument to g_io_[gs]etattr()

Sponsored by:	DARPA & NAI Labs
This commit is contained in:
Poul-Henning Kamp 2002-04-09 15:12:05 +00:00
parent e2a685488d
commit 0d3f37a804
2 changed files with 4 additions and 4 deletions

View file

@ -210,9 +210,9 @@ struct bio * g_clone_bio(struct bio *);
void g_destroy_bio(struct bio *);
void g_io_deliver(struct bio *bp);
void g_io_fail(struct bio *bp, int error);
int g_io_getattr(char *attr, struct g_consumer *cp, int *len, void *ptr);
int g_io_getattr(const char *attr, struct g_consumer *cp, int *len, void *ptr);
void g_io_request(struct bio *bp, struct g_consumer *cp);
int g_io_setattr(char *attr, struct g_consumer *cp, int len, void *ptr);
int g_io_setattr(const char *attr, struct g_consumer *cp, int len, void *ptr);
struct bio *g_new_bio(void);
void * g_read_data(struct g_consumer *cp, off_t offset, off_t length, int *error);

View file

@ -164,7 +164,7 @@ g_io_init()
}
int
g_io_setattr(char *attr, struct g_consumer *cp, int len, void *ptr)
g_io_setattr(const char *attr, struct g_consumer *cp, int len, void *ptr)
{
struct bio *bp;
int error;
@ -193,7 +193,7 @@ g_io_setattr(char *attr, struct g_consumer *cp, int len, void *ptr)
int
g_io_getattr(char *attr, struct g_consumer *cp, int *len, void *ptr)
g_io_getattr(const char *attr, struct g_consumer *cp, int *len, void *ptr)
{
struct bio *bp;
int error;