summaryrefslogtreecommitdiff
path: root/udevsend.c
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2004-02-02 18:10:29 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:13:20 -0700
commitd5c6d80ff1b617419dfcadb2fea4710d14f34b98 (patch)
treebce15f3b99dcd81612e9c66238e8583ba5811869 /udevsend.c
parent0be0c18de37b463f40c649f1b66b7683f2bf836b (diff)
[PATCH] let udevsend build with klibc
> I don't mind udevd using glibc, I just want the programs that get run a > lot of different times (udev and udevsend) to be as small as possible to > get the best cache results. As udevd sticks around all the time, it's > not as important. Sound sane to you? Oh, nice. Good idea.
Diffstat (limited to 'udevsend.c')
-rw-r--r--udevsend.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/udevsend.c b/udevsend.c
index 415207d8ca..fd61cb2a2f 100644
--- a/udevsend.c
+++ b/udevsend.c
@@ -163,7 +163,7 @@ int main(int argc, char* argv[])
strcpy(saddr.sun_path, UDEVD_SOCK);
/* try to connect, if it fails start daemon */
- retval = connect(sock, &saddr, sizeof(saddr));
+ retval = connect(sock, (struct sockaddr *) &saddr, sizeof(saddr));
if (retval != -1) {
goto send;
} else {
@@ -182,7 +182,7 @@ int main(int argc, char* argv[])
tspec.tv_nsec = 100000000; /* 100 millisec */
loop = UDEVSEND_CONNECT_RETRY;
while (loop--) {
- retval = connect(sock, &saddr, sizeof(saddr));
+ retval = connect(sock, (struct sockaddr *) &saddr, sizeof(saddr));
if (retval != -1)
goto send;
else