[as5912-54xk] Modify source code to follow coding standards

This commit is contained in:
Brandon Chuang
2017-08-25 07:19:15 +00:00
parent b569d65457
commit 3e1654ee61

View File

@@ -1,45 +0,0 @@
#include "x86_64_accton_as5912_54xk_int.h"
#if x86_64_accton_as5912_54xk_CONFIG_INCLUDE_DEBUG == 1
#include <unistd.h>
static char help__[] =
"Usage: debug [options]\n"
" -c CPLD Versions\n"
" -h Help\n"
;
int
x86_64_accton_as5912_54xk_debug_main(int argc, char* argv[])
{
int c = 0;
int help = 0;
int rv = 0;
while( (c = getopt(argc, argv, "ch")) != -1) {
switch(c)
{
case 'c': c = 1; break;
case 'h': help = 1; rv = 0; break;
default: help = 1; rv = 1; break;
}
}
if(help || argc == 1) {
printf("%s", help__);
return rv;
}
if(c) {
printf("Not implemented.\n");
}
return 0;
}
#endif