]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - net/sunrpc/svc.c
sunrpc: mark all struct svc_version instances as const
[linux.git] / net / sunrpc / svc.c
index 049963d676a79fc05d983e1bd093ba03cb080cc4..45b4f2d2e3bdfa226dc6bb484f5e1741e7d6515f 100644 (file)
@@ -1008,7 +1008,7 @@ int svc_register(const struct svc_serv *serv, struct net *net,
                 const unsigned short port)
 {
        struct svc_program      *progp;
-       struct svc_version      *vers;
+       const struct svc_version *vers;
        unsigned int            i;
        int                     error = 0;
 
@@ -1151,7 +1151,7 @@ static int
 svc_process_common(struct svc_rqst *rqstp, struct kvec *argv, struct kvec *resv)
 {
        struct svc_program      *progp;
-       struct svc_version      *versp = NULL;  /* compiler food */
+       const struct svc_version *versp = NULL; /* compiler food */
        const struct svc_procedure *procp = NULL;
        struct svc_serv         *serv = rqstp->rq_server;
        __be32                  *statp;