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

sticking to Mike's convention for shd_modinfo

parent ff96cb1a
...@@ -1411,7 +1411,7 @@ shdioctl(dev, cmd, data, flag, p) ...@@ -1411,7 +1411,7 @@ shdioctl(dev, cmd, data, flag, p)
struct shd_ioctl *shio = (struct shd_ioctl *)data; struct shd_ioctl *shio = (struct shd_ioctl *)data;
struct shd_readbuf *shread; struct shd_readbuf *shread;
struct shddevice shd; struct shddevice shd;
struct shd_mod *shmod; struct shd_modinfo *shmod;
struct vnode * vp; struct vnode * vp;
/*#ifdef SHDDEBUG /*#ifdef SHDDEBUG
...@@ -1428,7 +1428,7 @@ shdioctl(dev, cmd, data, flag, p) ...@@ -1428,7 +1428,7 @@ shdioctl(dev, cmd, data, flag, p)
switch (cmd) { switch (cmd) {
case SHDGETMODBLOCKS: case SHDGETMODBLOCKS:
shmod = (struct shd_mod *) data; shmod = (struct shd_modinfo *) data;
shmod->retsiz = get_mod_blocks (shmod->command, shmod->buf, shmod->bufsiz); shmod->retsiz = get_mod_blocks (shmod->command, shmod->buf, shmod->bufsiz);
break; break;
case SHDREADBLOCK: case SHDREADBLOCK:
......
...@@ -252,7 +252,7 @@ do_single(argc, argv, action, flags) ...@@ -252,7 +252,7 @@ do_single(argc, argv, action, flags)
if (strcmp (cp, "-gm") == 0) if (strcmp (cp, "-gm") == 0)
{ {
long buf[512]; long buf[512];
struct shd_mod mod; struct shd_modinfo mod;
mod.command = 1; /* To initialize iterator */ mod.command = 1; /* To initialize iterator */
mod.buf = buf; mod.buf = buf;
mod.bufsiz = 512; mod.bufsiz = 512;
......
...@@ -29,7 +29,7 @@ struct shd_ioctl { ...@@ -29,7 +29,7 @@ struct shd_ioctl {
long delete_end; long delete_end;
}; };
struct shd_mod { struct shd_modinfo {
int command; int command;
long *buf; long *buf;
long bufsiz; long bufsiz;
...@@ -141,5 +141,5 @@ struct shd_softc { ...@@ -141,5 +141,5 @@ struct shd_softc {
#define SHDDELETECHECKPOINTS _IOWR('S', 26, struct shd_ioctl) #define SHDDELETECHECKPOINTS _IOWR('S', 26, struct shd_ioctl)
#define SHDREADBLOCK _IOWR('S', 27, struct shd_readbuf) #define SHDREADBLOCK _IOWR('S', 27, struct shd_readbuf)
#define SHDSETREBOOTVERSION _IOWR('S', 28, struct shd_ioctl) #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