Skip to content

Commit

Permalink
gzip: clean up comments and fix code alignment
Browse files Browse the repository at this point in the history
This commit cleans up the comments and fixes the code alignment using Xen
coding style. This is done to make the code more legible before refactoring.

Signed-off-by: Daniel P. Smith <dpsmith@apertussolutions.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
  • Loading branch information
dpsmith authored and jbeulich committed Apr 26, 2024
1 parent 232ee07 commit fd4ff92
Show file tree
Hide file tree
Showing 2 changed files with 406 additions and 395 deletions.
14 changes: 11 additions & 3 deletions xen/common/gzip/gunzip.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,10 @@ static __init void error(const char *x)

static __init int fill_inbuf(void)
{
error("ran out of input data");
return 0;
error("ran out of input data");
return 0;
}


#include "inflate.c"

static __init void flush_window(void)
Expand Down Expand Up @@ -122,3 +121,12 @@ __init int perform_gunzip(char *output, char *image, unsigned long image_len)

return rc;
}

/*
* Local variables:
* mode: C
* c-file-style: "BSD"
* c-basic-offset: 4
* indent-tabs-mode: nil
* End:
*/

0 comments on commit fd4ff92

Please sign in to comment.