aboutsummaryrefslogtreecommitdiffstats
path: root/guts
diff options
context:
space:
mode:
authorPeter Seebach <seebs@eee12.(none)>2010-04-30 12:30:01 -0500
committerPeter Seebach <seebs@eee12.(none)>2010-04-30 17:54:12 -0500
commit0bc0b5a7f6eecb6bc129b1ab3b35d69f93c9e7a4 (patch)
tree2b4e0ef6168b262f8e59a50197f3edc3cebc2409 /guts
parentf97830a23402ac218a477828bf481bcff139507d (diff)
downloadpseudo-0bc0b5a7f6eecb6bc129b1ab3b35d69f93c9e7a4.tar.gz
pseudo-0bc0b5a7f6eecb6bc129b1ab3b35d69f93c9e7a4.tar.bz2
pseudo-0bc0b5a7f6eecb6bc129b1ab3b35d69f93c9e7a4.zip
Miscellaneous cleanup.
Address a couple of compiler warnings, add a couple of signals to the list of caught signals, etcetera.
Diffstat (limited to 'guts')
-rw-r--r--guts/__xmknodat.c3
-rw-r--r--guts/setgroups.c3
-rw-r--r--guts/tempnam.c3
-rw-r--r--guts/tmpnam.c2
4 files changed, 11 insertions, 0 deletions
diff --git a/guts/__xmknodat.c b/guts/__xmknodat.c
index 7281d33..7b4fc4b 100644
--- a/guts/__xmknodat.c
+++ b/guts/__xmknodat.c
@@ -9,6 +9,9 @@
pseudo_msg_t *msg;
struct stat64 buf;
+ /* we don't use underlying call, so _ver is irrelevant to us */
+ (void) ver;
+
#ifdef PSEUDO_NO_REAL_AT_FUNCTIONS
if (dirfd != AT_FDCWD) {
errno = ENOSYS;
diff --git a/guts/setgroups.c b/guts/setgroups.c
index 51058c0..31b2b57 100644
--- a/guts/setgroups.c
+++ b/guts/setgroups.c
@@ -7,6 +7,9 @@
* int rc = -1;
*/
+ /* let gcc know we're ignoring these */
+ (void) size;
+ (void) list;
/* you always have all group privileges. we're like magic! */
rc = 0;
diff --git a/guts/tempnam.c b/guts/tempnam.c
index b2c1990..9b0257f 100644
--- a/guts/tempnam.c
+++ b/guts/tempnam.c
@@ -6,6 +6,9 @@
* wrap_tempnam(const char *template, const char *pfx) {
* char * rc = NULL;
*/
+ /* let gcc know we ignored these on purpose */
+ (void) template;
+ (void) pfx;
pseudo_diag("tempnam() is so ludicrously insecure as to defy implementation.");
errno = ENOMEM;
rc = NULL;
diff --git a/guts/tmpnam.c b/guts/tmpnam.c
index 0df04b0..3fece57 100644
--- a/guts/tmpnam.c
+++ b/guts/tmpnam.c
@@ -7,6 +7,8 @@
* char * rc = NULL;
*/
+ /* let gcc know we're ignoring this */
+ (void) s;
pseudo_diag("tmpnam() is so ludicrously insecure as to defy implementation.");
errno = ENOMEM;
rc = NULL;