Skip to content

Commit

Permalink
ksmbd: change server config string index to enumeration
Browse files Browse the repository at this point in the history
Change server config string index to enumeration.

Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: Namjae Jeon <[email protected]>
Signed-off-by: Steve French <[email protected]>
  • Loading branch information
namjaejeon committed Jun 30, 2021
1 parent b9cbfb5 commit c63ee4a
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions fs/ksmbd/server.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,14 @@ enum {
SERVER_STATE_SHUTTING_DOWN,
};

#define SERVER_CONF_NETBIOS_NAME 0
#define SERVER_CONF_SERVER_STRING 1
#define SERVER_CONF_WORK_GROUP 2
/*
* Server global config string index
*/
enum {
SERVER_CONF_NETBIOS_NAME,
SERVER_CONF_SERVER_STRING,
SERVER_CONF_WORK_GROUP,
};

struct ksmbd_server_config {
unsigned int flags;
Expand Down

0 comments on commit c63ee4a

Please sign in to comment.