X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=afs.c;h=5e9bd118c41574fd7feaf110c0ee0673e8247dc4;hb=eea3b2008da20a96ebc0d867169d28a0a87d43d6;hp=c726f35f6a3524fa56a8934ae660d62472c8bf45;hpb=aea0aba712b2170e2d39ffa1c8f8cb55fc0881bf;p=paraslash.git diff --git a/afs.c b/afs.c index c726f35f..5e9bd118 100644 --- a/afs.c +++ b/afs.c @@ -235,7 +235,7 @@ out: * \sa send_standard_callback_request(), send_callback_request(). */ int send_option_arg_callback_request(struct osl_object *options, - int argc, const char **argv, callback_function *f, + int argc, char * const * const argv, callback_function *f, struct osl_object *result) { char *p; @@ -273,7 +273,7 @@ int send_option_arg_callback_request(struct osl_object *options, * \return The return value of the underlying call to * send_option_arg_callback_request(). */ -int send_standard_callback_request(int argc, const char **argv, +int send_standard_callback_request(int argc, char * const * const argv, callback_function *f, struct osl_object *result) { return send_option_arg_callback_request(NULL, argc, argv, f, result); @@ -674,7 +674,7 @@ static void command_post_select(struct sched *s, struct task *t) goto out; } if (t->ret != sizeof(buf)) { - PARA_NOTICE_LOG("short read (%d bytes, expected %d)\n", + PARA_NOTICE_LOG("short read (%d bytes, expected %u)\n", t->ret, sizeof(buf)); t->ret = 1; goto out; @@ -794,7 +794,7 @@ static int create_all_tables(void) } /* TODO load tables after init */ -int com_init(__a_unused int fd, int argc, const char **argv) +int com_init(__a_unused int fd, int argc, char * const * const argv) { int i, j, ret; if (argc == 1)