@@ -154,7 +154,7 @@ int symfilecnt = 0;
154154static void add_new_symbol (struct symfile * sym , char * symname )
155155{
156156 sym -> symbollist =
157- realloc (sym -> symbollist , (sym -> symbolcnt + 1 ) * sizeof (char * ));
157+ realloc (sym -> symbollist , (sym -> symbolcnt + 1 ) * sizeof (char * ));
158158 sym -> symbollist [sym -> symbolcnt ++ ].name = strdup (symname );
159159}
160160
@@ -215,7 +215,7 @@ static void find_export_symbols(char * filename)
215215 char * p ;
216216 char * e ;
217217 if (((p = strstr (line , "EXPORT_SYMBOL_GPL" )) != NULL ) ||
218- ((p = strstr (line , "EXPORT_SYMBOL" )) != NULL )) {
218+ ((p = strstr (line , "EXPORT_SYMBOL" )) != NULL )) {
219219 /* Skip EXPORT_SYMBOL{_GPL} */
220220 while (isalnum (* p ) || * p == '_' )
221221 p ++ ;
@@ -291,28 +291,28 @@ static void extfunc(char * filename) { docfunctions(filename, FUNCTION); }
291291static void singfunc (char * filename , char * line )
292292{
293293 char * vec [200 ]; /* Enough for specific functions */
294- int i , idx = 0 ;
295- int startofsym = 1 ;
294+ int i , idx = 0 ;
295+ int startofsym = 1 ;
296296 vec [idx ++ ] = KERNELDOC ;
297297 vec [idx ++ ] = DOCBOOK ;
298298 vec [idx ++ ] = SHOWNOTFOUND ;
299299
300- /* Split line up in individual parameters preceded by FUNCTION */
301- for (i = 0 ; line [i ]; i ++ ) {
302- if (isspace (line [i ])) {
303- line [i ] = '\0' ;
304- startofsym = 1 ;
305- continue ;
306- }
307- if (startofsym ) {
308- startofsym = 0 ;
309- vec [idx ++ ] = FUNCTION ;
310- vec [idx ++ ] = & line [i ];
311- }
312- }
300+ /* Split line up in individual parameters preceded by FUNCTION */
301+ for (i = 0 ; line [i ]; i ++ ) {
302+ if (isspace (line [i ])) {
303+ line [i ] = '\0' ;
304+ startofsym = 1 ;
305+ continue ;
306+ }
307+ if (startofsym ) {
308+ startofsym = 0 ;
309+ vec [idx ++ ] = FUNCTION ;
310+ vec [idx ++ ] = & line [i ];
311+ }
312+ }
313313 for (i = 0 ; i < idx ; i ++ ) {
314- if (strcmp (vec [i ], FUNCTION ))
315- continue ;
314+ if (strcmp (vec [i ], FUNCTION ))
315+ continue ;
316316 consume_symbol (vec [i + 1 ]);
317317 }
318318 vec [idx ++ ] = filename ;
@@ -460,14 +460,14 @@ static void parse_file(FILE *infile)
460460 break ;
461461 case 'D' :
462462 while (* s && !isspace (* s )) s ++ ;
463- * s = '\0' ;
464- symbolsonly (line + 2 );
465- break ;
463+ * s = '\0' ;
464+ symbolsonly (line + 2 );
465+ break ;
466466 case 'F' :
467467 /* filename */
468468 while (* s && !isspace (* s )) s ++ ;
469469 * s ++ = '\0' ;
470- /* function names */
470+ /* function names */
471471 while (isspace (* s ))
472472 s ++ ;
473473 singlefunctions (line + 2 , s );
@@ -515,11 +515,11 @@ int main(int argc, char *argv[])
515515 }
516516 /* Open file, exit on error */
517517 infile = fopen (argv [2 ], "r" );
518- if (infile == NULL ) {
519- fprintf (stderr , "docproc: " );
520- perror (argv [2 ]);
521- exit (2 );
522- }
518+ if (infile == NULL ) {
519+ fprintf (stderr , "docproc: " );
520+ perror (argv [2 ]);
521+ exit (2 );
522+ }
523523
524524 if (strcmp ("doc" , argv [1 ]) == 0 ) {
525525 /* Need to do this in two passes.
0 commit comments