From fb97b4d691c04d9303571d7eba3cef4a97264e2f Mon Sep 17 00:00:00 2001 From: Doug Ledford Date: Thu, 24 Jul 2008 18:35:11 -0400 Subject: Clean up usage of open() Fix on call that passed an invalid mode to open Don't pass a third arg unless we also pass O_CREAT Use symbolic args for 2nd and 3rd args Signed-off-by: Doug Ledford --- Detail.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Detail.c') diff --git a/Detail.c b/Detail.c index 2488c03..2b2111c 100644 --- a/Detail.c +++ b/Detail.c @@ -38,7 +38,7 @@ int Detail(char *dev, int brief, int export, int test, char *homehost) * GET_ARRAY_INFO and GET_DISK_INFO ioctl calls */ - int fd = open(dev, O_RDONLY, 0); + int fd = open(dev, O_RDONLY); int vers; mdu_array_info_t array; mdu_disk_info_t *disks; -- cgit