session: fix enum mismatch in rpc_handle_get() and rpc_handle_set()

This commit is contained in:
Jo-Philipp Wich 2013-09-12 11:51:58 +02:00
parent 6128bf647c
commit 4c9f178ad6

View file

@ -621,7 +621,7 @@ rpc_handle_set(struct ubus_context *ctx, struct ubus_object *obj,
struct blob_attr *msg)
{
struct rpc_session *ses;
struct blob_attr *tb[__RPC_SA_MAX];
struct blob_attr *tb[__RPC_SS_MAX];
struct blob_attr *attr;
int rem;
@ -651,7 +651,7 @@ rpc_handle_get(struct ubus_context *ctx, struct ubus_object *obj,
{
struct rpc_session *ses;
struct rpc_session_data *data;
struct blob_attr *tb[__RPC_SA_MAX];
struct blob_attr *tb[__RPC_SG_MAX];
struct blob_attr *attr;
void *c;
int rem;