]> sigrok.org Git - libsigrok.git/commitdiff
baylibre-acme: Drop unneeded comment.
authorUwe Hermann <redacted>
Mon, 16 Feb 2015 00:53:15 +0000 (01:53 +0100)
committerUwe Hermann <redacted>
Mon, 16 Feb 2015 00:57:35 +0000 (01:57 +0100)
There's indeed no g_fclose() unfortunately. The g_*() wrappers for file
handling are mainly there to deal with portability issues in file names
(encoding, character sets, etc) on different platforms.

src/hardware/baylibre-acme/protocol.c

index e7f1ede1faf04d80133c2e3b49140c732b056484..3ceee6c14b7f6d34e4ca5c987f79a18be4f46bb0 100644 (file)
@@ -335,10 +335,6 @@ SR_PRIV int bl_acme_set_shunt(const struct sr_channel_group *cg, uint64_t shunt)
 
        g_string_free(path, TRUE);
        g_fprintf(fd, "%" PRIu64 "\n", MOHM_TO_UOHM(shunt));
-       /*
-        * XXX There's no g_fclose() in GLib. This seems to work,
-        * but is it safe?
-        */
        fclose(fd);
 
 out: