#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
+#include <stdint.h>
#include "usbtmc.h"
#include "scope.h"
usbdev = usbtmc_initscope();
- if (!usbdev)
- return NULL;
+ if (!usbdev) {
+ printf("No scope found.\n");
+ exit(EXIT_FAILURE);
+ }
sc = calloc(1, sizeof(struct scope));
if (sc == NULL) {