git://git.camperquake.de
/
zfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Exclude atomic.S source from dist rules
[zfs.git]
/
cmd
/
zpool
/
zpool_util.c
diff --git
a/cmd/zpool/zpool_util.c
b/cmd/zpool/zpool_util.c
index
f44da4f
..
c7a002e
100644
(file)
--- a/
cmd/zpool/zpool_util.c
+++ b/
cmd/zpool/zpool_util.c
@@
-19,12
+19,10
@@
* CDDL HEADER END
*/
/*
* CDDL HEADER END
*/
/*
- * Copyright 200
7
Sun Microsystems, Inc. All rights reserved.
+ * Copyright 200
9
Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#include <errno.h>
#include <libgen.h>
#include <libintl.h>
#include <errno.h>
#include <libgen.h>
#include <libintl.h>
@@
-51,22
+49,6
@@
safe_malloc(size_t size)
}
/*
}
/*
- * Same as above, but for strdup()
- */
-char *
-safe_strdup(const char *str)
-{
- char *ret;
-
- if ((ret = strdup(str)) == NULL) {
- (void) fprintf(stderr, "internal error: out of memory\n");
- exit(1);
- }
-
- return (ret);
-}
-
-/*
* Display an out of memory error message and abort the current program.
*/
void
* Display an out of memory error message and abort the current program.
*/
void