[PATCH 1/4] cifs: cleanup asn1.c - functions

From: Jesper Juhl
Date: Mon Apr 04 2005 - 16:10:35 EST


Clean up function definitions to match previously agreed on style (return
type on same line as function name, parameters on same line if <80 chars,
remaining parameters on subsequent lines indented one tab).

Signed-off-by: Jesper Juhl <juhl-lkml@xxxxxx>


--- linux-2.6.12-rc1-mm4-orig/fs/cifs/asn1.c 2005-03-21 23:12:40.000000000 +0100
+++ linux-2.6.12-rc1-mm4/fs/cifs/asn1.c 2005-04-04 22:25:01.000000000 +0200
@@ -99,8 +99,8 @@
unsigned int len;
};

-static void
-asn1_open(struct asn1_ctx *ctx, unsigned char *buf, unsigned int len)
+static void asn1_open(struct asn1_ctx *ctx, unsigned char *buf,
+ unsigned int len)
{
ctx->begin = buf;
ctx->end = buf + len;
@@ -108,8 +108,7 @@
ctx->error = ASN1_ERR_NOERROR;
}

-static unsigned char
-asn1_octet_decode(struct asn1_ctx *ctx, unsigned char *ch)
+static unsigned char asn1_octet_decode(struct asn1_ctx *ctx, unsigned char *ch)
{
if (ctx->pointer >= ctx->end) {
ctx->error = ASN1_ERR_DEC_EMPTY;
@@ -119,8 +118,7 @@
return 1;
}

-static unsigned char
-asn1_tag_decode(struct asn1_ctx *ctx, unsigned int *tag)
+static unsigned char asn1_tag_decode(struct asn1_ctx *ctx, unsigned int *tag)
{
unsigned char ch;

@@ -135,9 +133,8 @@
return 1;
}

-static unsigned char
-asn1_id_decode(struct asn1_ctx *ctx,
- unsigned int *cls, unsigned int *con, unsigned int *tag)
+static unsigned char asn1_id_decode(struct asn1_ctx *ctx, unsigned int *cls,
+ unsigned int *con, unsigned int *tag)
{
unsigned char ch;

@@ -155,8 +152,8 @@
return 1;
}

-static unsigned char
-asn1_length_decode(struct asn1_ctx *ctx, unsigned int *def, unsigned int *len)
+static unsigned char asn1_length_decode(struct asn1_ctx *ctx,
+ unsigned int *def, unsigned int *len)
{
unsigned char ch, cnt;

@@ -186,10 +183,9 @@
return 1;
}

-static unsigned char
-asn1_header_decode(struct asn1_ctx *ctx,
- unsigned char **eoc,
- unsigned int *cls, unsigned int *con, unsigned int *tag)
+static unsigned char asn1_header_decode(struct asn1_ctx *ctx,
+ unsigned char **eoc, unsigned int *cls, unsigned int *con,
+ unsigned int *tag)
{
unsigned int def, len;

@@ -206,8 +202,7 @@
return 1;
}

-static unsigned char
-asn1_eoc_decode(struct asn1_ctx *ctx, unsigned char *eoc)
+static unsigned char asn1_eoc_decode(struct asn1_ctx *ctx, unsigned char *eoc)
{
unsigned char ch;

@@ -238,14 +233,14 @@
}

/* static unsigned char asn1_null_decode(struct asn1_ctx *ctx,
- unsigned char *eoc)
+ unsigned char *eoc)
{
ctx->pointer = eoc;
return 1;
}

-static unsigned char asn1_long_decode(struct asn1_ctx *ctx,
- unsigned char *eoc, long *integer)
+static unsigned char asn1_long_decode(struct asn1_ctx *ctx, unsigned char *eoc,
+ long *integer)
{
unsigned char ch;
unsigned int len;
@@ -271,9 +266,8 @@
return 1;
}

-static unsigned char asn1_uint_decode(struct asn1_ctx *ctx,
- unsigned char *eoc,
- unsigned int *integer)
+static unsigned char asn1_uint_decode(struct asn1_ctx *ctx, unsigned char *eoc,
+ unsigned int *integer)
{
unsigned char ch;
unsigned int len;
@@ -303,8 +297,7 @@
}

static unsigned char asn1_ulong_decode(struct asn1_ctx *ctx,
- unsigned char *eoc,
- unsigned long *integer)
+ unsigned char *eoc, unsigned long *integer)
{
unsigned char ch;
unsigned int len;
@@ -333,10 +326,8 @@
return 1;
}

-static unsigned char
-asn1_octets_decode(struct asn1_ctx *ctx,
- unsigned char *eoc,
- unsigned char **octets, unsigned int *len)
+static unsigned char asn1_octets_decode(struct asn1_ctx *ctx,
+ unsigned char *eoc, unsigned char **octets, unsigned int *len)
{
unsigned char *ptr;

@@ -359,8 +350,8 @@
return 1;
} */

-static unsigned char
-asn1_subid_decode(struct asn1_ctx *ctx, unsigned long *subid)
+static unsigned char asn1_subid_decode(struct asn1_ctx *ctx,
+ unsigned long *subid)
{
unsigned char ch;

@@ -376,9 +367,8 @@
return 1;
}

-static int
-asn1_oid_decode(struct asn1_ctx *ctx,
- unsigned char *eoc, unsigned long **oid, unsigned int *len)
+static int asn1_oid_decode(struct asn1_ctx *ctx, unsigned char *eoc,
+ unsigned long **oid, unsigned int *len)
{
unsigned long subid;
unsigned int size;
@@ -429,9 +419,8 @@
return 1;
}

-static int
-compare_oid(unsigned long *oid1, unsigned int oid1len,
- unsigned long *oid2, unsigned int oid2len)
+static int compare_oid(unsigned long *oid1, unsigned int oid1len,
+ unsigned long *oid2, unsigned int oid2len)
{
unsigned int i;

@@ -448,9 +437,8 @@

/* BB check for endian conversion issues here */

-int
-decode_negTokenInit(unsigned char *security_blob, int length,
- enum securityEnum *secType)
+int decode_negTokenInit(unsigned char *security_blob, int length,
+ enum securityEnum *secType)
{
struct asn1_ctx ctx;
unsigned char *end;


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/