HCoop
/
hcoop
/
domtool2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mail: fix vmailpasswd compilation warnings
[hcoop/domtool2.git]
/
src
/
mail
/
vmailpasswd.c
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;