Mercurial > libdvdnav.hg
comparison vm/vm.c @ 400:3daa43270d2c src
Cosmetic change only - os2_open
os2_open() doesn't look like the rest of the code. And since we just
updated it, it probably should look like the rest of the code.
author | erik |
---|---|
date | Sun, 06 Sep 2009 15:26:43 +0000 |
parents | 61edd6fa781b |
children | 390fbf2a9602 |
comparison
equal
deleted
inserted
replaced
399:61edd6fa781b | 400:3daa43270d2c |
---|---|
140 #ifdef __OS2__ | 140 #ifdef __OS2__ |
141 #define open os2_open | 141 #define open os2_open |
142 | 142 |
143 static int os2_open(const char *name, int oflag) | 143 static int os2_open(const char *name, int oflag) |
144 { | 144 { |
145 HFILE hfile; | 145 HFILE hfile; |
146 ULONG ulAction; | 146 ULONG ulAction; |
147 ULONG rc; | 147 ULONG rc; |
148 | 148 |
149 rc = DosOpenL( name, &hfile, &ulAction, 0, FILE_NORMAL, | 149 rc = DosOpenL(name, &hfile, &ulAction, 0, FILE_NORMAL, |
150 OPEN_ACTION_OPEN_IF_EXISTS | OPEN_ACTION_FAIL_IF_NEW, | 150 OPEN_ACTION_OPEN_IF_EXISTS | OPEN_ACTION_FAIL_IF_NEW, |
151 OPEN_ACCESS_READONLY | OPEN_SHARE_DENYNONE | OPEN_FLAGS_DASD, | 151 OPEN_ACCESS_READONLY | OPEN_SHARE_DENYNONE | OPEN_FLAGS_DASD, |
152 NULL ); | 152 NULL); |
153 | 153 |
154 if( rc ) | 154 if(rc) |
155 return -1; | 155 return -1; |
156 | 156 |
157 setmode( hfile, O_BINARY ); | 157 setmode(hfile, O_BINARY); |
158 | 158 |
159 return ( int )hfile; | 159 return (int)hfile; |
160 } | 160 } |
161 #endif | 161 #endif |
162 | 162 |
163 static void dvd_read_name(char *name, char *serial, const char *device) { | 163 static void dvd_read_name(char *name, char *serial, const char *device) { |
164 /* Because we are compiling with _FILE_OFFSET_BITS=64 | 164 /* Because we are compiling with _FILE_OFFSET_BITS=64 |