Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/vndcompress Use static and __dead
details: https://anonhg.NetBSD.org/src/rev/5462024dff7f
branches: trunk
changeset: 769345:5462024dff7f
user: joerg <joerg%NetBSD.org@localhost>
date: Tue Sep 06 18:45:04 2011 +0000
description:
Use static and __dead
diffstat:
usr.bin/vndcompress/vndcompress.c | 12 ++++++------
usr.bin/vndcompress/vndcompress.h | 7 +------
2 files changed, 7 insertions(+), 12 deletions(-)
diffs (72 lines):
diff -r 37f063faa99e -r 5462024dff7f usr.bin/vndcompress/vndcompress.c
--- a/usr.bin/vndcompress/vndcompress.c Tue Sep 06 18:44:46 2011 +0000
+++ b/usr.bin/vndcompress/vndcompress.c Tue Sep 06 18:45:04 2011 +0000
@@ -1,4 +1,4 @@
-/* $Id: vndcompress.c,v 1.6 2009/04/14 07:36:16 lukem Exp $ */
+/* $Id: vndcompress.c,v 1.7 2011/09/06 18:45:04 joerg Exp $ */
/*
* Copyright (c) 2005 by Florian Stoehr <netbsd%wolfnode.de@localhost>
@@ -60,12 +60,12 @@
*/
static const char *cloop_sh = "#!/bin/sh\n" "#V2.0 Format\n" "insmod cloop.o file=$0 && mount -r -t iso9660 /dev/cloop $1\n" "exit $?\n";
-int opmode;
+static int opmode;
/*
* Print usage information, then exit program
*/
-void
+__dead static void
usage(void)
{
if (opmode == OM_COMPRESS) {
@@ -80,7 +80,7 @@
/*
* Compress a given file system
*/
-void
+static void
vndcompress(const char *fs, const char *comp, uint32_t blocksize)
{
int fd_in, fd_out;
@@ -243,7 +243,7 @@
/*
* Read in header and offset table from compressed image
*/
-uint64_t *
+static uint64_t *
readheader(int fd, struct cloop_header *clh, off_t *dstart)
{
uint32_t offtable_size;
@@ -273,7 +273,7 @@
/*
* Decompress a given file system image
*/
-void
+static void
vnduncompress(const char *comp, const char *fs)
{
int fd_in, fd_out;
diff -r 37f063faa99e -r 5462024dff7f usr.bin/vndcompress/vndcompress.h
--- a/usr.bin/vndcompress/vndcompress.h Tue Sep 06 18:44:46 2011 +0000
+++ b/usr.bin/vndcompress/vndcompress.h Tue Sep 06 18:45:04 2011 +0000
@@ -1,4 +1,4 @@
-/* $Id: vndcompress.h,v 1.2 2008/02/18 03:34:04 dyoung Exp $ */
+/* $Id: vndcompress.h,v 1.3 2011/09/06 18:45:04 joerg Exp $ */
/*
* Copyright (c) 2005 by Florian Stoehr
@@ -51,11 +51,6 @@
struct cloop_header;
-void usage(void);
-void vndcompress(const char *, const char *, uint32_t);
-uint64_t * readheader(int, struct cloop_header *, off_t *);
-void vnduncompress(const char *, const char *);
-
/* Size of the shell command (Linux compatibility) */
#define CLOOP_SH_SIZE 128
Home |
Main Index |
Thread Index |
Old Index