HCoop
/
hcoop
/
domtool2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
20f239b
)
mail: fix vmailpasswd compilation warnings
author
Clinton Ebadi
<clinton@unknownlamer.org>
Sat, 14 Apr 2018 04:51:42 +0000
(
00:51
-0400)
committer
Clinton Ebadi
<clinton@unknownlamer.org>
Sat, 14 Apr 2018 04:51:42 +0000
(
00:51
-0400)
src/mail/vmailpasswd.c
patch
|
blob
|
blame
|
history
diff --git
a/src/mail/vmailpasswd.c
b/src/mail/vmailpasswd.c
index
67fdf33
..
25b2116
100644
(file)
--- a/
src/mail/vmailpasswd.c
+++ b/
src/mail/vmailpasswd.c
@@
-21,6
+21,7
@@
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#define _XOPEN_SOURCE
#include <unistd.h>
#define _XOPEN_SOURCE
#include <unistd.h>
+#include <stdlib.h>
#include <stdio.h>
#include <ctype.h>
#include <string.h>
#include <stdio.h>
#include <ctype.h>
#include <string.h>
@@
-32,7
+33,7
@@
int validDomain(const char *dom) {
return 1;
}
return 1;
}
-main(int argc, char *argv[]) {
+
int
main(int argc, char *argv[]) {
char *domain, addr[1024], cmd[1024], *crypted;
FILE *pw;
int rc;
char *domain, addr[1024], cmd[1024], *crypted;
FILE *pw;
int rc;