summaryrefslogtreecommitdiff
path: root/archival
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-01-30 17:17:14 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-01-30 17:17:14 +0000
commit20f40000864609866b51624351581d067b18469c (patch)
treec47584ea54140cdd66f0833c8202875e8f4fe844 /archival
parent0e8727d93b963d13c511d39199043c2c316031c2 (diff)
downloadbusybox-w32-20f40000864609866b51624351581d067b18469c.tar.gz
busybox-w32-20f40000864609866b51624351581d067b18469c.tar.bz2
busybox-w32-20f40000864609866b51624351581d067b18469c.zip
- add some ATTRIBUTE_UNUSED.
- use shorter boilerplate while at it.
Diffstat (limited to 'archival')
-rw-r--r--archival/gzip.c17
-rw-r--r--archival/rpm.c16
2 files changed, 4 insertions, 29 deletions
diff --git a/archival/gzip.c b/archival/gzip.c
index 1f268dd26..783a453a7 100644
--- a/archival/gzip.c
+++ b/archival/gzip.c
@@ -13,20 +13,7 @@
13 * files as well as stdin/stdout, and to generally behave itself wrt 13 * files as well as stdin/stdout, and to generally behave itself wrt
14 * command line handling. 14 * command line handling.
15 * 15 *
16 * This program is free software; you can redistribute it and/or modify 16 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
17 * it under the terms of the GNU General Public License as published by
18 * the Free Software Foundation; either version 2 of the License, or
19 * (at your option) any later version.
20 *
21 * This program is distributed in the hope that it will be useful,
22 * but WITHOUT ANY WARRANTY; without even the implied warranty of
23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
24 * General Public License for more details.
25 *
26 * You should have received a copy of the GNU General Public License
27 * along with this program; if not, write to the Free Software
28 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
29 *
30 */ 17 */
31 18
32/* These defines are very important for BusyBox. Without these, 19/* These defines are very important for BusyBox. Without these,
@@ -322,7 +309,7 @@ static void put_short(ush w)
322/* ======================================================================== 309/* ========================================================================
323 * Signal and error handler. 310 * Signal and error handler.
324 */ 311 */
325static void abort_gzip(int ignored) 312static void abort_gzip(int ATTRIBUTE_UNUSED ignored)
326{ 313{
327 exit(ERROR); 314 exit(ERROR);
328} 315}
diff --git a/archival/rpm.c b/archival/rpm.c
index a80f799a6..88e748550 100644
--- a/archival/rpm.c
+++ b/archival/rpm.c
@@ -4,19 +4,7 @@
4 * 4 *
5 * Copyright (C) 2001,2002 by Laurence Anderson 5 * Copyright (C) 2001,2002 by Laurence Anderson
6 * 6 *
7 * This program is free software; you can redistribute it and/or modify 7 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 */ 8 */
21 9
22#include <stdio.h> 10#include <stdio.h>
@@ -336,7 +324,7 @@ void fileaction_setowngrp(char *filename, int fileref)
336 chown (filename, uid, gid); 324 chown (filename, uid, gid);
337} 325}
338 326
339void fileaction_list(char *filename, int fileref) 327void fileaction_list(char *filename, int ATTRIBUTE_UNUSED fileref)
340{ 328{
341 printf("%s\n", filename); 329 printf("%s\n", filename);
342} 330}