Re: [Linuxwacom-devel] [PATCH libwacom 2/3] test: close fd_stylus after usage
On Fri, 2012-06-22 at 16:29 +1000, Peter Hutterer wrote: > Signed-off-by: Peter Hutterer Reviewed-By: Bastien Nocera > --- > test/dbverify.c |1 + > 1 file changed, 1 insertion(+) > > diff --git a/test/dbverify.c b/test/dbverify.c > index 6a9149b..472f4ea 100644 > --- a/test/dbverify.c > +++ b/test/dbverify.c > @@ -159,6 +159,7 @@ compare_written_database(WacomDeviceDatabase *db) > fd_stylus = open(path, O_WRONLY|O_CREAT, S_IRWXU); > assert(fd_stylus >= 0); > libwacom_print_stylus_description(fd_stylus, stylus); > + close(fd_stylus); > } > } > -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Linuxwacom-devel mailing list Linuxwacom-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel
[Linuxwacom-devel] [PATCH libwacom 2/3] test: close fd_stylus after usage
Signed-off-by: Peter Hutterer --- test/dbverify.c |1 + 1 file changed, 1 insertion(+) diff --git a/test/dbverify.c b/test/dbverify.c index 6a9149b..472f4ea 100644 --- a/test/dbverify.c +++ b/test/dbverify.c @@ -159,6 +159,7 @@ compare_written_database(WacomDeviceDatabase *db) fd_stylus = open(path, O_WRONLY|O_CREAT, S_IRWXU); assert(fd_stylus >= 0); libwacom_print_stylus_description(fd_stylus, stylus); + close(fd_stylus); } } -- 1.7.10.2 -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Linuxwacom-devel mailing list Linuxwacom-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel