summaryrefslogtreecommitdiff
path: root/libtiff/tif_compress.c
diff options
context:
space:
mode:
authorJoris Van Damme <joris.at.lebbeke@skynet.be>2007-06-26 09:42:27 +0000
committerJoris Van Damme <joris.at.lebbeke@skynet.be>2007-06-26 09:42:27 +0000
commit1988981be82753a9bf48511482e1226e1b785a79 (patch)
tree8fe3fc636b7efc282873b6098edb8c2e7dd42616 /libtiff/tif_compress.c
parent00edd873485fdb8446e5b22828ba5032d74d4224 (diff)
downloadlibtiff-git-1988981be82753a9bf48511482e1226e1b785a79.tar.gz
BigTIFF upgrade: misc little things, mostly indentation and unimportant stuff
Diffstat (limited to 'libtiff/tif_compress.c')
-rw-r--r--libtiff/tif_compress.c23
1 files changed, 12 insertions, 11 deletions
diff --git a/libtiff/tif_compress.c b/libtiff/tif_compress.c
index dabcc500..8afdce1e 100644
--- a/libtiff/tif_compress.c
+++ b/libtiff/tif_compress.c
@@ -1,4 +1,4 @@
-/* $Id: tif_compress.c,v 1.18 2007-06-23 01:32:31 joris Exp $ */
+/* $Id: tif_compress.c,v 1.19 2007-06-26 09:42:27 joris Exp $ */
/*
* Copyright (c) 1988-1997 Sam Leffler
@@ -251,13 +251,14 @@ TIFFUnRegisterCODEC(TIFFCodec* c)
TIFFCodec*
TIFFGetConfiguredCODECs()
{
- int i = 1;
- codec_t *cd;
- const TIFFCodec *c;
- TIFFCodec *codecs = NULL, *new_codecs;
+ int i = 1;
+ codec_t *cd;
+ const TIFFCodec* c;
+ TIFFCodec* codecs = NULL;
+ TIFFCodec* new_codecs;
- for (cd = registeredCODECS; cd; cd = cd->next) {
- new_codecs = (TIFFCodec *)
+ for (cd = registeredCODECS; cd; cd = cd->next) {
+ new_codecs = (TIFFCodec *)
_TIFFrealloc(codecs, i * sizeof(TIFFCodec));
if (!new_codecs) {
_TIFFfree (codecs);
@@ -267,9 +268,9 @@ TIFFGetConfiguredCODECs()
_TIFFmemcpy(codecs + i - 1, cd, sizeof(TIFFCodec));
i++;
}
- for (c = _TIFFBuiltinCODECS; c->name; c++) {
- if (TIFFIsCODECConfigured(c->scheme)) {
- new_codecs = (TIFFCodec *)
+ for (c = _TIFFBuiltinCODECS; c->name; c++) {
+ if (TIFFIsCODECConfigured(c->scheme)) {
+ new_codecs = (TIFFCodec *)
_TIFFrealloc(codecs, i * sizeof(TIFFCodec));
if (!new_codecs) {
_TIFFfree (codecs);
@@ -289,7 +290,7 @@ TIFFGetConfiguredCODECs()
codecs = new_codecs;
_TIFFmemset(codecs + i - 1, 0, sizeof(TIFFCodec));
- return codecs;
+ return codecs;
}
/* vim: set ts=8 sts=8 sw=8 noet: */