Example #1
0
File: kmod.c Project: lu-zero/kmod
int main(int argc, char *argv[])
{
	int err;

	if (strcmp(program_invocation_short_name, "kmod") == 0)
		err = handle_kmod_commands(argc, argv);
	else
		err = handle_kmod_compat_commands(argc, argv);

	return err;
}
Example #2
0
int main(int argc, char *argv[])
{
	const char *binname = basename(argv[0]);
	int err;

	if (strcmp(binname, "kmod") == 0)
		err = handle_kmod_commands(argc, argv);
	else
		err = handle_kmod_compat_commands(argc, argv);

	return err;
}