ao-tools: Fix warnings in ao-tools
[fw/altos] / ao-tools / ao-usbtrng / ao-usbtrng.c
index 456885d9b4871b205d3d5cad13e8f7c2921fb7ec..46bdbeb23edd61b21a711d2e2dc0948977056e6b 100644 (file)
@@ -3,7 +3,8 @@
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
  * This program is distributed in the hope that it will be useful, but
  * WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -45,7 +46,7 @@ static void usage(char *program)
        exit(1);
 }
 
-void
+static void
 done(struct cc_usb *cc, int code)
 {
        cc_usb_close(cc);
@@ -56,7 +57,6 @@ int
 main (int argc, char **argv)
 {
        char                    *device = NULL;
-       char                    *filename;
        int                     i;
        int                     c;
        struct cc_usb           *cc = NULL;