diff options
| author | Thomas Schmucker <ts@its1.de> | 2020-08-12 20:19:59 +0200 |
|---|---|---|
| committer | Thomas Schmucker <ts@its1.de> | 2020-08-12 20:19:59 +0200 |
| commit | 26ac3307fd93588a243a289ac569be8e8b2d4c9f (patch) | |
| tree | 771ac95f6752b811c2491eb22c660171d1e408c1 /deque.c | |
| parent | 024cb7031b29c3d6b2f3a42ca18116195d30ea61 (diff) | |
| download | data-structures-26ac3307fd93588a243a289ac569be8e8b2d4c9f.tar.gz data-structures-26ac3307fd93588a243a289ac569be8e8b2d4c9f.tar.bz2 data-structures-26ac3307fd93588a243a289ac569be8e8b2d4c9f.zip | |
vereinfache Code (sizeof braucht oft keine oder nur wenige Klammern)
Diffstat (limited to 'deque.c')
| -rw-r--r-- | deque.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -22,7 +22,7 @@ deque_init(struct deque *d) | |||
| 22 | d->tail = 0; | 22 | d->tail = 0; |
| 23 | d->capacity = START_CAPACITY; | 23 | d->capacity = START_CAPACITY; |
| 24 | 24 | ||
| 25 | d->chunks = calloc(d->capacity, sizeof(*d->chunks)); | 25 | d->chunks = calloc(d->capacity, sizeof *d->chunks); |
| 26 | } | 26 | } |
| 27 | 27 | ||
| 28 | void | 28 | void |
