(main): return a exit code.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4203 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -134,7 +134,7 @@ createuser (char *cell)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void
|
static void
|
||||||
usage(int ecode)
|
usage(int ecode)
|
||||||
{
|
{
|
||||||
arg_printusage(args, num_args, "[cell]... [path]...");
|
arg_printusage(args, num_args, "[cell]... [path]...");
|
||||||
@@ -172,14 +172,15 @@ afslog_file(krb5_context context, krb5_ccache id,
|
|||||||
return afslog_cell(context, id, cell, 0);
|
return afslog_cell(context, id, cell, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(int argc, char **argv)
|
int
|
||||||
|
main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
int optind = 0;
|
int optind = 0;
|
||||||
krb5_context context;
|
krb5_context context;
|
||||||
krb5_ccache id;
|
krb5_ccache id;
|
||||||
char cellbuf[64];
|
|
||||||
int i;
|
int i;
|
||||||
int num;
|
int num;
|
||||||
|
int ret = 0;
|
||||||
|
|
||||||
set_progname(argv[0]);
|
set_progname(argv[0]);
|
||||||
|
|
||||||
@@ -217,6 +218,9 @@ int main(int argc, char **argv)
|
|||||||
else
|
else
|
||||||
afslog_cell(context, id, argv[i], 1);
|
afslog_cell(context, id, argv[i], 1);
|
||||||
}
|
}
|
||||||
if(num == 0)
|
if(num == 0) {
|
||||||
krb5_afslog(context, id, NULL, NULL);
|
krb5_afslog(context, id, NULL, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user