Error correction.

This commit is contained in:
Ronald Schaten 2006-10-01 16:28:38 +00:00
parent 33028777f8
commit bcc3be5bfc

View File

@ -2,7 +2,7 @@
* \file usb-led-fader.c
* \brief Commandline-tool for the USB-LED-Fader.
* \author Ronald Schaten
* \version $Id: usb-led-fader.c,v 1.1 2006/09/26 18:18:27 rschaten Exp $
* \version $Id: usb-led-fader.c,v 1.2 2006/10/01 16:28:38 rschaten Exp $
*
* License: See documentation.
*/
@ -348,7 +348,7 @@ void dev_reset(usb_dev_handle *handle, int argc, char** argv) {
* \param argc Number of arguments.
* \param argv Arguments.
*/
int dev_show(int argc, char **argv) {
void dev_show(usb_dev_handle *handle, int argc, char** argv) {
if (argc != 3) {
usage(argv[0]);
exit(1);
@ -415,7 +415,7 @@ int main(int argc, char **argv)
} else if (strcmp(argv[1], "reset") == 0) {
dev_reset(handle, argc, argv);
} else if (strcmp(argv[1], "show") == 0) {
dev_reset(handle, argc, argv);
dev_show(handle, argc, argv);
} else {
usage(argv[0]);
exit(1);