]> sigrok.org Git - libsigrok.git/blobdiff - input/chronovu_la8.c
Minor whitespace fixes.
[libsigrok.git] / input / chronovu_la8.c
index 991bfeecc485425fa8ea6f634576d15f58fc12ae..9d4c9700d7da1543f0e5be32ca8d0165e912e30c 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * This file is part of the sigrok project.
+ * This file is part of the libsigrok project.
  *
  * Copyright (C) 2011 Uwe Hermann <uwe@hermann-uwe.de>
  *
@@ -172,9 +172,10 @@ static int loadfile(struct sr_input *in, const char *filename)
        /* Send metadata about the SR_DF_LOGIC packets to come. */
        packet.type = SR_DF_META;
        packet.payload = &meta;
-       src = sr_config_make(SR_CONF_SAMPLERATE, (const void *)&samplerate);
+       src = sr_config_new(SR_CONF_SAMPLERATE, g_variant_new_uint64(samplerate));
        meta.config = g_slist_append(NULL, src);
        sr_session_send(in->sdi, &packet);
+       sr_config_free(src);
 
        /* TODO: Handle trigger point. */