#include <errno.h>
#include <nfs.h>
+#include <afs/ihandle.h>
#include <partition.h>
#include <afs/cmd.h>
#include <stdlib.h>
#define ROOTINODE 2
int force = 0, verbose = 0, unconv = 0;
-static
-ConvCmd(as)
- struct cmd_syndesc *as;
+static int
+ConvCmd(struct cmd_syndesc *as, void *arock)
{
unconv = 0;
handleit(as);
}
-static
-UnConvCmd(as)
- struct cmd_syndesc *as;
+static int
+UnConvCmd(struct cmd_syndesc *as, void *arock)
{
unconv = 1;
handleit(as);
}
-static
-handleit(as)
- struct cmd_syndesc *as;
+static int
+handleit(struct cmd_syndesc *as)
{
register struct cmd_item *ti;
char *dname;
printf("must be run as root; sorry\n");
exit(1);
}
- ts = cmd_CreateSyntax("convert", ConvCmd, 0,
+ ts = cmd_CreateSyntax("convert", ConvCmd, NULL,
"Convert to AFS SunOS 5.6 format");
cmd_AddParm(ts, "-part", CMD_LIST, CMD_OPTIONAL, "AFS partition name");
cmd_AddParm(ts, "-verbose", CMD_FLAG, CMD_OPTIONAL, "verbose mode");
cmd_AddParm(ts, "-force", CMD_FLAG, CMD_OPTIONAL,
"Safeguard enforce switch");
cmd_AddParm(ts, "-device", CMD_LIST, CMD_OPTIONAL, "AFS raw device name");
- ts = cmd_CreateSyntax("unconvert", UnConvCmd, 0,
+ ts = cmd_CreateSyntax("unconvert", UnConvCmd, NULL,
"Convert back from AFS SunOS 5.6 to earlier formats");
cmd_AddParm(ts, "-part", CMD_LIST, CMD_OPTIONAL, "AFS partition name");
cmd_AddParm(ts, "-verbose", CMD_FLAG, CMD_OPTIONAL, "verbose mode");