drop indent rule and re-indent

This commit is contained in:
Klas Lindfors
2014-02-03 11:02:44 +01:00
parent 9200f83953
commit 4389ffde1b
2 changed files with 26 additions and 31 deletions
-4
View File
@@ -51,10 +51,6 @@ yubico-piv-tool.1: $(yubico_piv_tool_SOURCES) \
# Maintainer rules. # Maintainer rules.
indent:
indent -linux *.c *.h
indent -linux *.c *.h
ChangeLog: ChangeLog:
cd $(srcdir) && git2cl > ChangeLog cd $(srcdir) && git2cl > ChangeLog
+6 -7
View File
@@ -38,9 +38,10 @@
#include "cmdline.h" #include "cmdline.h"
unsigned const char default_key[] = unsigned const char default_key[] = {
{ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x01, 0x02, 0x03, 0x04, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08,
0x05, 0x06, 0x07, 0x08, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08,
0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08
}; };
typedef struct { typedef struct {
@@ -52,8 +53,7 @@ typedef struct {
unsigned char data[0xff]; unsigned char data[0xff];
} APDU; } APDU;
static void dump_hex(const unsigned char *buf, int len) static void dump_hex(const unsigned char *buf, int len) {
{
int i; int i;
printf("length: %d\n", len); printf("length: %d\n", len);
for (i = 0; i < len; i++) { for (i = 0; i < len; i++) {
@@ -65,8 +65,7 @@ static void dump_hex(const unsigned char *buf, int len)
printf("\n"); printf("\n");
} }
int main(int argc, char *argv[]) int main(int argc, char *argv[]) {
{
struct gengetopt_args_info args_info; struct gengetopt_args_info args_info;
if (cmdline_parser(argc, argv, &args_info) != 0) { if (cmdline_parser(argc, argv, &args_info) != 0) {