summaryrefslogtreecommitdiff
path: root/utils/su.c
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-08-01 00:40:19 +0000
committerMiles Bader <miles@gnu.org>1996-08-01 00:40:19 +0000
commitec5b927a0d378fec8066f9c349403c2b2020a337 (patch)
tree0b894f1319ab7ab93cdac8563d3d8a3900932011 /utils/su.c
parent37c058c67a2e503606e3c3ebda5050ca2d0c045c (diff)
(check_password): Use #pragma weak instead of __attribute__ ((weak)).
Diffstat (limited to 'utils/su.c')
-rw-r--r--utils/su.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/su.c b/utils/su.c
index 0be75235..de12917e 100644
--- a/utils/su.c
+++ b/utils/su.c
@@ -454,8 +454,8 @@ apply_auth_to_pgrp (struct auth *auth, pid_t pgrp)
int
check_password (const char *name, const char *password)
{
- extern char *crypt (const char *string, const char salt[2])
- __attribute__ ((weak));
+ extern char *crypt (const char *string, const char salt[2]);
+#pragma weak crypt
char *unencrypted, *encrypted;
static char *prompt = NULL;