Browse Source

move getpass decl to the right place

Rich Felker 13 years ago
parent
commit
3db29f0347
2 changed files with 1 additions and 1 deletions
  1. 0 1
      include/pwd.h
  2. 1 0
      include/unistd.h

+ 0 - 1
include/pwd.h

@@ -36,7 +36,6 @@ int getpwuid_r (uid_t, struct passwd *, char *, size_t, struct passwd **);
 int getpwnam_r (const char *, struct passwd *, char *, size_t, struct passwd **);
 
 #ifdef _GNU_SOURCE
-char *getpass(const char *);
 struct passwd *fgetpwent(FILE *);
 #endif
 

+ 1 - 0
include/unistd.h

@@ -166,6 +166,7 @@ int getdtablesize(void);
 void setusershell(void);
 void endusershell(void);
 char *getusershell(void);
+char *getpass(const char *);
 #endif
 
 #ifdef _LARGEFILE64_SOURCE