Skip to content

Commit 844338b

Browse files
committed
dropped unnecessary "failed to connect" error message. (sourceforge
feature request #8)
1 parent 2096161 commit 844338b

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

spnav.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
This file is part of libspnav, part of the spacenav project (spacenav.sf.net)
3-
Copyright (C) 2007-2010 John Tsiombikas <nuclear@member.fsf.org>
3+
Copyright (C) 2007-2020 John Tsiombikas <nuclear@member.fsf.org>
44
55
Redistribution and use in source and binary forms, with or without
66
modification, are permitted provided that the following conditions are met:
@@ -96,7 +96,6 @@ int spnav_open(void)
9696

9797

9898
if(connect(s, (struct sockaddr*)&addr, sizeof addr) == -1) {
99-
perror("connect failed");
10099
close(s);
101100
return -1;
102101
}
@@ -557,7 +556,7 @@ int catch_badwin(Display *dpy, XErrorEvent *err)
557556
/* do nothing? */
558557
} else {
559558
XGetErrorText(dpy, err->error_code, buf, sizeof buf);
560-
fprintf(stderr, "Caught unexpected X error: %s\n", buf);
559+
fprintf(stderr, "libspnav: caught unexpected X error: %s\n", buf);
561560
}
562561
return 0;
563562
}

0 commit comments

Comments
 (0)