mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +00:00
Silence message about absence of PnP overrides.
This commit is contained in:
parent
e2eb6a14cd
commit
1a9e10d8a1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=46839
1 changed files with 5 additions and 4 deletions
|
@ -23,7 +23,7 @@
|
|||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: kget.c,v 1.3 1999/02/12 20:36:09 abial Exp $
|
||||
* $Id: kget.c,v 1.1 1999/02/27 02:24:18 jkh Exp $
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
|
@ -115,8 +115,8 @@ main(int argc, char *argv[])
|
|||
/* get the buffer size */
|
||||
i=sysctlbyname(mib2,NULL,&len,NULL,NULL);
|
||||
if(i) {
|
||||
perror("buffer sizing");
|
||||
exit(-1);
|
||||
/* Hmm.. No PnP table? */
|
||||
goto finish;
|
||||
}
|
||||
buf=(char *)malloc(len*sizeof(char));
|
||||
i=sysctlbyname(mib2,buf,&len,NULL,NULL);
|
||||
|
@ -157,8 +157,9 @@ main(int argc, char *argv[])
|
|||
}
|
||||
|
||||
} while ((i+=sizeof(struct pnp_cinfo))<len);
|
||||
free(buf);
|
||||
finish:
|
||||
fprintf(fout,"q\n");
|
||||
fclose(fout);
|
||||
free(buf);
|
||||
exit(0);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue