Add open argument.

This commit is contained in:
W. Eric Norum
2008-01-08 20:29:20 +00:00
parent e366f72788
commit b8cd8f5507

View File

@@ -156,7 +156,7 @@ setBootConfigFromNVRAM(void)
# else
char gev_buf[3592];
int fd;
if ((fd = open(BSP_I2C_VPD_EEPROM_DEV_NAME)) < 0) {
if ((fd = open(BSP_I2C_VPD_EEPROM_DEV_NAME, 0)) < 0) {
printf("Can't open %s: %s\n", BSP_I2C_VPD_EEPROM_DEV_NAME, strerror(errno));
return;
}