diff options
author | Dan McGee <dan@archlinux.org> | 2007-05-14 09:16:55 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-05-14 09:16:55 +0200 |
commit | 2bcecbd62cb2bda681a3aba46bb0bbf690ba7219 (patch) | |
tree | cc7f9d60e04c65453527354bbd18312a9c323ed4 /src/pacman/util.c | |
parent | 5c930c318e7b80af3a322ddc7ddf9fe100e9c16b (diff) | |
download | pacman-2bcecbd62cb2bda681a3aba46bb0bbf690ba7219.tar.gz pacman-2bcecbd62cb2bda681a3aba46bb0bbf690ba7219.tar.xz |
Remove unnecessary casts on malloc and elsewhere
We had many unnecessary casts, most of them dealing with malloc and
other memory allocations. The variable type should take care of it;
no need to do it explicitly. In addition, I caught a const error while
removing the casts.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'src/pacman/util.c')
-rw-r--r-- | src/pacman/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pacman/util.c b/src/pacman/util.c index 0057a85b..f38be60c 100644 --- a/src/pacman/util.c +++ b/src/pacman/util.c @@ -216,7 +216,7 @@ char *strtrim(char *str) memmove(str, pch, (strlen(pch) + 1)); } - pch = (char *)(str + (strlen(str) - 1)); + pch = (str + (strlen(str) - 1)); while(isspace(*pch)) { pch--; } |