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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Comment beautification. Make them match previously established style.

Signed-off-by: Jesper Juhl <[email protected]>


--- linux-2.6.12-rc1-mm4/fs/cifs/asn1.c.with_patch3	2005-04-04 22:48:45.000000000 +0200
+++ linux-2.6.12-rc1-mm4/fs/cifs/asn1.c	2005-04-04 22:52:09.000000000 +0200
@@ -67,9 +67,7 @@
 #define ASN1_PRI	0	/* Primitive */
 #define ASN1_CON	1	/* Constructed */
 
-/*
- * Error codes.
- */
+/* Error codes. */
 #define ASN1_ERR_NOERROR		0
 #define ASN1_ERR_DEC_EMPTY		2
 #define ASN1_ERR_DEC_EOC_MISMATCH	3
@@ -81,9 +79,7 @@
 static unsigned long SPNEGO_OID[7] = { 1, 3, 6, 1, 5, 5, 2 };
 static unsigned long NTLMSSP_OID[10] = { 1, 3, 6, 1, 4, 1, 311, 2, 2, 10 };
 
-/* 
- * ASN.1 context.
- */
+/* ASN.1 context. */
 struct asn1_ctx {
 	int error;		/* Error condition */
 	unsigned char *pointer;	/* Octet just to be decoded */
@@ -91,9 +87,7 @@ struct asn1_ctx {
 	unsigned char *end;	/* Octet after last octet */
 };
 
-/*
- * Octet string (not null terminated)
- */
+/* Octet string (not null terminated) */
 struct asn1_octstr {
 	unsigned char *data;
 	unsigned int len;
@@ -447,7 +441,8 @@ int decode_negTokenInit(unsigned char *s
 	unsigned int cls, con, tag, oidlen, rc;
 	int use_ntlmssp = FALSE;
 
-	*secType = NTLM; /* BB eventually make Kerberos or NLTMSSP the default */
+	*secType = NTLM;	/* BB eventually make Kerberos or NLTMSSP the
+				   default */
 
 	/* cifs_dump_mem(" Received SecBlob ", security_blob, length); */
 
@@ -461,7 +456,7 @@ int decode_negTokenInit(unsigned char *s
 		cFYI(1, ("cls = %d con = %d tag = %d", cls, con, tag));
 		return 0;
 	} else {
-		/*      remember to free obj->oid */
+		/* remember to free obj->oid */
 		rc = asn1_header_decode(&ctx, &end, &cls, &con, &tag);
 		if (rc) {
 			if ((tag == ASN1_OJI) && (cls == ASN1_PRI)) {
@@ -553,7 +548,8 @@ int decode_negTokenInit(unsigned char *s
 			cFYI(1, ("Error decoding last part of negTokenInit "
 				 "exit 3"));
 			return 0;
-		} else if ((cls != ASN1_CTX) || (con != ASN1_CON)) {	/* tag = 3 indicating mechListMIC */
+		} else if ((cls != ASN1_CTX) || (con != ASN1_CON)) {
+					/* tag = 3 indicating mechListMIC */
 			cFYI(1, ("Exit 4 cls = %d con = %d tag = %d end = "
 				 "%p (%d)", cls, con, tag, end, *end));
 			return 0;


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

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux