summaryrefslogtreecommitdiff
path: root/conf/pam_conv1/pam_conv.y
diff options
context:
space:
mode:
authorAndrew G. Morgan <morgan@kernel.org>2002-05-29 06:35:46 +0000
committerAndrew G. Morgan <morgan@kernel.org>2002-05-29 06:35:46 +0000
commite509c5af6f70eb3cfd846004b82caaca24fd4a3b (patch)
treefe9859716e1120d88c1d3b6bf24aa1617c138332 /conf/pam_conv1/pam_conv.y
parent62f3574062ed05e9afd512028994bd17639c0b2f (diff)
Relevant BUGIDs: 491466
Purpose of commit: cleanup Commit summary: --------------- These were all suggestions from the OS X patch provided by Luke Howard. There is another proposed patch for OS X support which promises to be a little cleaner with the heavy stuff, so I am committing these simple changes now, with the intention of moving to the other patch for the big stuff (see 534205).
Diffstat (limited to 'conf/pam_conv1/pam_conv.y')
-rw-r--r--conf/pam_conv1/pam_conv.y3
1 files changed, 2 insertions, 1 deletions
diff --git a/conf/pam_conv1/pam_conv.y b/conf/pam_conv1/pam_conv.y
index 18bedccf..f42b634e 100644
--- a/conf/pam_conv1/pam_conv.y
+++ b/conf/pam_conv1/pam_conv.y
@@ -193,11 +193,12 @@ void yyerror(const char *format, ...)
fprintf(stderr, "\n");
}
-void main()
+int main(int argc, char *argv[])
{
if (mkdir(PAM_D, PAM_D_MODE) != 0) {
yyerror(PAM_D " already exists.. aborting");
exit(1);
}
yyparse();
+ exit(0);
}