Changeset View
Changeset View
Standalone View
Standalone View
head/sbin/nvmecontrol/reset.c
Show All 39 Lines | |||||
#include <unistd.h> | #include <unistd.h> | ||||
#include "nvmecontrol.h" | #include "nvmecontrol.h" | ||||
#define RESET_USAGE \ | #define RESET_USAGE \ | ||||
"reset <controller id>\n" | "reset <controller id>\n" | ||||
static void | static void | ||||
reset(struct nvme_function *nf, int argc, char *argv[]) | reset(const struct nvme_function *nf, int argc, char *argv[]) | ||||
{ | { | ||||
int ch, fd; | int ch, fd; | ||||
while ((ch = getopt(argc, argv, "")) != -1) { | while ((ch = getopt(argc, argv, "")) != -1) { | ||||
switch ((char)ch) { | switch ((char)ch) { | ||||
default: | default: | ||||
usage(nf); | usage(nf); | ||||
} | } | ||||
Show All 14 Lines |