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:
parent
5d54f67b1a
commit
ea728e7c56
|
|
@ -193,7 +193,7 @@ int main( int argc, char** argv )
|
|||
}
|
||||
|
||||
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",
|
||||
filename, errno );
|
||||
release_resources_and_exit( EXIT_FAILURE );
|
||||
|
|
|
|||
Loading…
Reference in New Issue