aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-08-13 09:22:14 -0400
committerDave Reisner <dreisner@archlinux.org>2012-08-13 09:31:06 -0400
commit97c2f657ad58934671911cd438b6fd33f8db57f4 (patch)
treef643fa92c4ee208729692a311bbeef9c989d1b56
parent3b286de6104fb4a4a0c2d6dfc8910cfc957f51b2 (diff)
downloadmirror-ponymix-97c2f657ad58934671911cd438b6fd33f8db57f4.tar.gz
mirror-ponymix-97c2f657ad58934671911cd438b6fd33f8db57f4.tar.bz2
mirror-ponymix-97c2f657ad58934671911cd438b6fd33f8db57f4.zip
remove unneeded declaration
-rw-r--r--pulsemix.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/pulsemix.c b/pulsemix.c
index 71edd3a..c972f49 100644
--- a/pulsemix.c
+++ b/pulsemix.c
@@ -743,8 +743,7 @@ int main(int argc, char *argv[])
errx(EXIT_FAILURE, "missing value for action '%s'", argv[optind - 1]);
else {
/* validate to number */
- int r = xstrtol(argv[optind], &value);
- if (r < 0)
+ if (xstrtol(argv[optind], &value) < 0)
errx(EXIT_FAILURE, "invalid number: %s", argv[optind]);
}
else if (verb == ACTION_SETDEFAULT) {