[hackers] [farbfeld] Add proper blank lines in png2ff(1) before comments || FRIGN

From: <git_AT_suckless.org>
Date: Fri, 4 Mar 2016 12:32:32 +0100 (CET)

commit 1d07cf4473ef4539d3ea249bf7e751a695470ff9
Author: FRIGN <dev_AT_frign.de>
AuthorDate: Fri Mar 4 12:31:58 2016 +0100
Commit: FRIGN <dev_AT_frign.de>
CommitDate: Fri Mar 4 12:31:58 2016 +0100

    Add proper blank lines in png2ff(1) before comments

diff --git a/png2ff.c b/png2ff.c
index 99757be..cf85b32 100644
--- a/png2ff.c
+++ b/png2ff.c
_AT_@ -55,12 +55,14 @@ main(int argc, char *argv[])
         width = png_get_image_width(pngs, pngi);
         height = png_get_image_height(pngs, pngi);
         pngrows = png_get_rows(pngs, pngi);
+
         /* allocate output row buffer */
         rowlen = width * strlen("RGBA");
         if (!(row = malloc(rowlen * sizeof(uint16_t)))) {
                 fprintf(stderr, "%s: malloc: out of memory\n", argv0);
                 return 1;
         }
+
         /* write header */
         fputs("farbfeld", stdout);
         tmp32 = htonl(width);
_AT_@ -69,6 +71,7 @@ main(int argc, char *argv[])
         tmp32 = htonl(height);
         if (fwrite(&tmp32, sizeof(uint32_t), 1, stdout) != 1)
                 goto writerr;
+
         /* write data */
         switch(png_get_bit_depth(pngs, pngi)) {
         case 8:
Received on Fri Mar 04 2016 - 12:32:32 CET

This archive was generated by hypermail 2.3.0 : Fri Mar 04 2016 - 12:36:23 CET