asalamon74 / pktriggercord

Remote control for Pentax DSLR cameras
http://pktriggercord.melda.info
GNU Lesser General Public License v3.0
103 stars 38 forks source link

handle retval of write() #77

Closed jirislaby closed 2 years ago

jirislaby commented 2 years ago

write() can fail and compiler also warns:

warning: ignoring return value of 'write' declared with attribute 'warn_unused_result'

Fix this.

asalamon74 commented 2 years ago

Thanks for the cleanup @jirislaby, I modified the formatting to make astyle happy and committed as c1177a4881f363455255866f6f6d8149574e4b35