aboutsummaryrefslogtreecommitdiff
path: root/palm
diff options
context:
space:
mode:
authorAlexander Nedotsukov <bland@FreeBSD.org>2005-05-01 13:25:05 +0000
committerAlexander Nedotsukov <bland@FreeBSD.org>2005-05-01 13:25:05 +0000
commitf340e57d1d1d2fecb8896e7ad1ec9e63c73e6077 (patch)
tree62ab42b6d3447b71792410b498914f3661aaa0a1 /palm
parent6ff179b837e15acd4292a5f22951ffec660b4927 (diff)
downloadports-f340e57d1d1d2fecb8896e7ad1ec9e63c73e6077.tar.gz
ports-f340e57d1d1d2fecb8896e7ad1ec9e63c73e6077.zip
Notes
Diffstat (limited to 'palm')
-rw-r--r--palm/gnome-pilot/files/patch-gpilotd__gpilotd.c4
-rw-r--r--palm/gnomepilot2/files/patch-gpilotd__gpilotd.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/palm/gnome-pilot/files/patch-gpilotd__gpilotd.c b/palm/gnome-pilot/files/patch-gpilotd__gpilotd.c
index b856f0a4af69..5af6804f7117 100644
--- a/palm/gnome-pilot/files/patch-gpilotd__gpilotd.c
+++ b/palm/gnome-pilot/files/patch-gpilotd__gpilotd.c
@@ -39,10 +39,10 @@
+
+ l = context->devices;
+ while (l) {
-+ device = l->data;
-+
+ struct stat dummy;
+
++ device = l->data;
++
+ /* Make sure usb device exists */
+ if (stat(device->port, &dummy) == 0) {
+ if (device->type == PILOT_DEVICE_USB_VISOR) {
diff --git a/palm/gnomepilot2/files/patch-gpilotd__gpilotd.c b/palm/gnomepilot2/files/patch-gpilotd__gpilotd.c
index b856f0a4af69..5af6804f7117 100644
--- a/palm/gnomepilot2/files/patch-gpilotd__gpilotd.c
+++ b/palm/gnomepilot2/files/patch-gpilotd__gpilotd.c
@@ -39,10 +39,10 @@
+
+ l = context->devices;
+ while (l) {
-+ device = l->data;
-+
+ struct stat dummy;
+
++ device = l->data;
++
+ /* Make sure usb device exists */
+ if (stat(device->port, &dummy) == 0) {
+ if (device->type == PILOT_DEVICE_USB_VISOR) {