Mercurial > libdvdnav.hg
changeset 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 |
files | vm/vm.c |
diffstat | 1 files changed, 11 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/vm/vm.c Sun Sep 06 15:26:39 2009 +0000 +++ b/vm/vm.c Sun Sep 06 15:26:43 2009 +0000 @@ -142,21 +142,21 @@ static int os2_open(const char *name, int oflag) { - HFILE hfile; - ULONG ulAction; - ULONG rc; + HFILE hfile; + ULONG ulAction; + ULONG rc; - rc = DosOpenL( name, &hfile, &ulAction, 0, FILE_NORMAL, - OPEN_ACTION_OPEN_IF_EXISTS | OPEN_ACTION_FAIL_IF_NEW, - OPEN_ACCESS_READONLY | OPEN_SHARE_DENYNONE | OPEN_FLAGS_DASD, - NULL ); + rc = DosOpenL(name, &hfile, &ulAction, 0, FILE_NORMAL, + OPEN_ACTION_OPEN_IF_EXISTS | OPEN_ACTION_FAIL_IF_NEW, + OPEN_ACCESS_READONLY | OPEN_SHARE_DENYNONE | OPEN_FLAGS_DASD, + NULL); - if( rc ) - return -1; + if(rc) + return -1; - setmode( hfile, O_BINARY ); + setmode(hfile, O_BINARY); - return ( int )hfile; + return (int)hfile; } #endif