meta-digi-dey: memwatch: Fix compilation for new toolchain

The open() method now expects a mode argument.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
This commit is contained in:
Alex Gonzalez 2019-04-03 12:37:59 +02:00
parent 5d54f67b1a
commit ea728e7c56
1 changed files with 1 additions and 1 deletions

View File

@ -193,7 +193,7 @@ int main( int argc, char** argv )
} }
if( filename != NULL ) { if( filename != NULL ) {
if( ( fd_file = open( filename, O_RDWR | O_CREAT ) ) < 0 ) { if( ( fd_file = open( filename, O_RDWR | O_CREAT , 0600 ) ) < 0 ) {
fprintf( stderr, "Error opening file: %s (%d)\n", fprintf( stderr, "Error opening file: %s (%d)\n",
filename, errno ); filename, errno );
release_resources_and_exit( EXIT_FAILURE ); release_resources_and_exit( EXIT_FAILURE );