Remove unused variables.
This commit is contained in:
parent
531c70a642
commit
347a5ee76c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=160522
@ -221,10 +221,8 @@ Opt_list:
|
|||||||
Option:
|
Option:
|
||||||
Save_id
|
Save_id
|
||||||
= {
|
= {
|
||||||
char *s;
|
|
||||||
|
|
||||||
newopt(&opt, $1, NULL);
|
newopt(&opt, $1, NULL);
|
||||||
if ((s = strchr($1, '=')))
|
if (strchr($1, '=') != NULL)
|
||||||
errx(1, "%s:%d: The `=' in options should not be "
|
errx(1, "%s:%d: The `=' in options should not be "
|
||||||
"quoted", yyfile, yyline);
|
"quoted", yyfile, yyline);
|
||||||
} |
|
} |
|
||||||
|
@ -300,7 +300,7 @@ doread(int fd, FILE *of, const char *_devname)
|
|||||||
int
|
int
|
||||||
doreadid(int fd, unsigned int numids, unsigned int trackno)
|
doreadid(int fd, unsigned int numids, unsigned int trackno)
|
||||||
{
|
{
|
||||||
int rv = 0, status, fdopts;
|
int rv = 0, fdopts;
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
struct fdc_readid info;
|
struct fdc_readid info;
|
||||||
struct fdc_status fdcs;
|
struct fdc_status fdcs;
|
||||||
@ -316,7 +316,7 @@ doreadid(int fd, unsigned int numids, unsigned int trackno)
|
|||||||
for (i = 0; i < numids; i++) {
|
for (i = 0; i < numids; i++) {
|
||||||
info.cyl = trackno / fdt.heads;
|
info.cyl = trackno / fdt.heads;
|
||||||
info.head = fdt.heads > 1? trackno % fdt.heads: 0;
|
info.head = fdt.heads > 1? trackno % fdt.heads: 0;
|
||||||
if ((status = ioctl(fd, FD_READID, &info)) == 0) {
|
if (ioctl(fd, FD_READID, &info) == 0) {
|
||||||
printf("C = %d, H = %d, R = %d, N = %d\n",
|
printf("C = %d, H = %d, R = %d, N = %d\n",
|
||||||
info.cyl, info.head, info.sec, info.secshift);
|
info.cyl, info.head, info.sec, info.secshift);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user