aboutsummaryrefslogtreecommitdiffstats
path: root/com32/cmenu
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-05-29 15:10:20 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-05-29 15:10:20 -0700
commitc4fb0e48855482b029a0a6484083e78fe21c0cce (patch)
treeec5cbd84572e4f690aebbe42ce8f6c5e29da48fd /com32/cmenu
parent82142038970dc91f99777146f8d0862d6a5b5b86 (diff)
downloadsyslinux-c4fb0e48855482b029a0a6484083e78fe21c0cce.tar.gz
syslinux-c4fb0e48855482b029a0a6484083e78fe21c0cce.tar.xz
syslinux-c4fb0e48855482b029a0a6484083e78fe21c0cce.zip
Run Nindent on com32/cmenu/libmenu/passwords.h
Automatically reformat com32/cmenu/libmenu/passwords.h using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'com32/cmenu')
-rw-r--r--com32/cmenu/libmenu/passwords.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/com32/cmenu/libmenu/passwords.h b/com32/cmenu/libmenu/passwords.h
index 00e5702d..9ac06b19 100644
--- a/com32/cmenu/libmenu/passwords.h
+++ b/com32/cmenu/libmenu/passwords.h
@@ -1,23 +1,23 @@
#ifndef _PASSWORDS_H_
#define _PASSWORDS_H_
-char authenticate_user(const char * username, const char* pwd);
+char authenticate_user(const char *username, const char *pwd);
-char isallowed(const char *username, const char * perm);
+char isallowed(const char *username, const char *perm);
// Initialise the list of of user passwords permissions from file
void init_passwords(const char *filename);
// Free all space used for internal data structures
void close_passwords();
-#define MAX_USERS 128 // Maximum number of users
-#define USERNAME_LENGTH 12 // Max length of user name
-#define PWDHASH_LENGTH 40 // Max lenght of pwd hash
+#define MAX_USERS 128 // Maximum number of users
+#define USERNAME_LENGTH 12 // Max length of user name
+#define PWDHASH_LENGTH 40 // Max lenght of pwd hash
typedef struct {
- char username[USERNAME_LENGTH+1];
- char pwdhash[PWDHASH_LENGTH+1];
- char *perms; // pointer to string containing ":" delimited permissions
+ char username[USERNAME_LENGTH + 1];
+ char pwdhash[PWDHASH_LENGTH + 1];
+ char *perms; // pointer to string containing ":" delimited permissions
} pwdentry;
typedef pwdentry *p_pwdentry;