Commit 99779cfb authored by Siddharth Aggarwal's avatar Siddharth Aggarwal

sticking to Mike's convention for shd_modinfo

parent ff96cb1a
......@@ -1411,7 +1411,7 @@ shdioctl(dev, cmd, data, flag, p)
struct shd_ioctl *shio = (struct shd_ioctl *)data;
struct shd_readbuf *shread;
struct shddevice shd;
struct shd_mod *shmod;
struct shd_modinfo *shmod;
struct vnode * vp;
/*#ifdef SHDDEBUG
......@@ -1428,7 +1428,7 @@ shdioctl(dev, cmd, data, flag, p)
switch (cmd) {
case SHDGETMODBLOCKS:
shmod = (struct shd_mod *) data;
shmod = (struct shd_modinfo *) data;
shmod->retsiz = get_mod_blocks (shmod->command, shmod->buf, shmod->bufsiz);
break;
case SHDREADBLOCK:
......
......@@ -252,7 +252,7 @@ do_single(argc, argv, action, flags)
if (strcmp (cp, "-gm") == 0)
{
long buf[512];
struct shd_mod mod;
struct shd_modinfo mod;
mod.command = 1; /* To initialize iterator */
mod.buf = buf;
mod.bufsiz = 512;
......
......@@ -29,7 +29,7 @@ struct shd_ioctl {
long delete_end;
};
struct shd_mod {
struct shd_modinfo {
int command;
long *buf;
long bufsiz;
......@@ -141,5 +141,5 @@ struct shd_softc {
#define SHDDELETECHECKPOINTS _IOWR('S', 26, struct shd_ioctl)
#define SHDREADBLOCK _IOWR('S', 27, struct shd_readbuf)
#define SHDSETREBOOTVERSION _IOWR('S', 28, struct shd_ioctl)
#define SHDGETMODBLOCKS _IOWR('S', 29, struct shd_mod)
#define SHDGETMODBLOCKS _IOWR('S', 29, struct shd_modinfo)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment