}
}
-int main(int argc, char *argv[], char *envp[])
+int main(int argc, char *argv[])
{
struct sysfs_device *dev;
struct udevice *udev;
extern size_t buf_get_line(const char *buf, size_t buflen, size_t cur);
/* udev commands */
-extern int udevmonitor(int argc, char *argv[], char *envp[]);
-extern int udevinfo(int argc, char *argv[], char *envp[]);
-extern int udevcontrol(int argc, char *argv[], char *envp[]);
-extern int udevtrigger(int argc, char *argv[], char *envp[]);
-extern int udevsettle(int argc, char *argv[], char *envp[]);
-extern int udevtest(int argc, char *argv[], char *envp[]);
+extern int udevmonitor(int argc, char *argv[]);
+extern int udevinfo(int argc, char *argv[]);
+extern int udevcontrol(int argc, char *argv[]);
+extern int udevtrigger(int argc, char *argv[]);
+extern int udevsettle(int argc, char *argv[]);
+extern int udevtest(int argc, char *argv[]);
#endif
struct command {
const char *name;
- int (*cmd)(int argc, char *argv[], char *envp[]);
+ int (*cmd)(int argc, char *argv[]);
const char *help;
int debug;
};
static const struct command cmds[];
-static int version(int argc, char *argv[], char *envp[])
+static int version(int argc, char *argv[])
{
printf("%s\n", VERSION);
return 0;
}
-static int help(int argc, char *argv[], char *envp[])
+static int help(int argc, char *argv[])
{
const struct command *cmd;
{}
};
-int main(int argc, char *argv[], char *envp[])
+int main(int argc, char *argv[])
{
const char *command;
const char *pos;
for (cmd = cmds; cmd->name != NULL; cmd++) {
if (strcmp(cmd->name, command) == 0) {
debug = cmd->debug;
- rc = cmd->cmd(argc, argv, envp);
+ rc = cmd->cmd(argc, argv);
goto out;
}
}
static int sock = -1;
static int udev_log = 0;
-int udevcontrol(int argc, char *argv[], char *envp[])
+int udevcontrol(int argc, char *argv[])
{
static struct udevd_ctrl_msg ctrl_msg;
struct sockaddr_un saddr;
}
}
-int main(int argc, char *argv[], char *envp[])
+int main(int argc, char *argv[])
{
int retval;
int fd;
return 0;
}
-int udevinfo(int argc, char *argv[], char *envp[])
+int udevinfo(int argc, char *argv[])
{
int option;
struct udevice *udev = NULL;
return NULL;
}
-int udevmonitor(int argc, char *argv[], char *envp[])
+int udevmonitor(int argc, char *argv[])
{
struct sigaction act;
int option;
printf("\n\n");
}
-int udevsettle(int argc, char *argv[], char *envp[])
+int udevsettle(int argc, char *argv[])
{
char queuename[PATH_SIZE];
char filename[PATH_SIZE];
return rc;
}
-int udevtest(int argc, char *argv[], char *envp[])
+int udevtest(int argc, char *argv[])
{
int force = 0;
const char *action = "add";
}
}
-int udevtrigger(int argc, char *argv[], char *envp[])
+int udevtrigger(int argc, char *argv[])
{
int failed = 0;
const char *sockpath = NULL;