diff options
author | ttsou | 2009-09-09 14:46:57 -0400 |
---|---|---|
committer | ttsou | 2009-09-16 17:08:51 -0400 |
commit | e6cb4a4c14d9aa92d024727965bd45e68c6620ce (patch) | |
tree | a8705202c36e1fcf7d4d88ca823a4de46e419d43 /usrp/host/apps/usrper.cc | |
parent | 158caeaa92df7ffdf363236985f4b8e7825f3950 (diff) | |
download | gnuradio-e6cb4a4c14d9aa92d024727965bd45e68c6620ce.tar.gz gnuradio-e6cb4a4c14d9aa92d024727965bd45e68c6620ce.tar.bz2 gnuradio-e6cb4a4c14d9aa92d024727965bd45e68c6620ce.zip |
Intermediate fix to simplify usrp_one_time_init api
Diffstat (limited to 'usrp/host/apps/usrper.cc')
-rw-r--r-- | usrp/host/apps/usrper.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/usrp/host/apps/usrper.cc b/usrp/host/apps/usrper.cc index 9c6403c9d..f8e98341f 100644 --- a/usrp/host/apps/usrper.cc +++ b/usrp/host/apps/usrper.cc @@ -19,6 +19,10 @@ * Foundation, Inc., 51 Franklin Street, Boston, MA 02110-1301 USA */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -34,7 +38,6 @@ char *prog_name; - static void set_progname (char *path) { @@ -191,10 +194,10 @@ main (int argc, char **argv) const char *cmd = argv[optind++]; nopts--; - libusb_context *ctx = usrp_one_time_init (true); + usrp_one_time_init (); - struct libusb_device *udev = usrp_find_device (which_board, fx2_ok_p, ctx); + struct libusb_device *udev = usrp_find_device (which_board, fx2_ok_p); if (udev == 0){ fprintf (stderr, "%s: failed to find usrp[%d]\n", prog_name, which_board); exit (1); |