Skip to content

Commit

Permalink
rpc: remove some unused macros
Browse files Browse the repository at this point in the history
There used to be a print_hexl() function that used isprint(), now gone.
I don't know why NFS_NGROUPS and CA_RUN_AS_MACHINE were here.

I also don't know why another #define that's actually used was marked
"unused".

Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
  • Loading branch information
\\\"J. Bruce Fields\\\ authored and Trond Myklebust committed Jul 9, 2008
1 parent 720b8f2 commit d25a03c
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions net/sunrpc/auth_gss/auth_gss.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,22 +63,11 @@ static const struct rpc_credops gss_nullops;
# define RPCDBG_FACILITY RPCDBG_AUTH
#endif

#define NFS_NGROUPS 16

#define GSS_CRED_SLACK 1024 /* XXX: unused */
#define GSS_CRED_SLACK 1024
/* length of a krb5 verifier (48), plus data added before arguments when
* using integrity (two 4-byte integers): */
#define GSS_VERF_SLACK 100

/* XXX this define must match the gssd define
* as it is passed to gssd to signal the use of
* machine creds should be part of the shared rpc interface */

#define CA_RUN_AS_MACHINE 0x00000200

/* dump the buffer in `emacs-hexl' style */
#define isprint(c) ((c > 0x1f) && (c < 0x7f))

struct gss_auth {
struct kref kref;
struct rpc_auth rpc_auth;
Expand Down

0 comments on commit d25a03c

Please sign in to comment.