summaryrefslogtreecommitdiff
path: root/sys/qcam/qcam-Linux.c
diff options
context:
space:
mode:
authorThomas Vander Stichele <thomas@apestaart.org>2004-03-15 19:32:27 +0000
committerThomas Vander Stichele <thomas@apestaart.org>2004-03-15 19:32:27 +0000
commit4fd57bbe3fef59592a8664dcc9fa2ab32ae99c69 (patch)
tree8f41b30e571aa6ed88b53f5471d5e38461136e60 /sys/qcam/qcam-Linux.c
parent9f4226fe55f09cf5809376b467aa3f46dbf7b5c2 (diff)
downloadgstreamer-plugins-bad-4fd57bbe3fef59592a8664dcc9fa2ab32ae99c69.tar.gz
don't mix tabs and spaces
Original commit message from CVS: don't mix tabs and spaces
Diffstat (limited to 'sys/qcam/qcam-Linux.c')
-rw-r--r--sys/qcam/qcam-Linux.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/qcam/qcam-Linux.c b/sys/qcam/qcam-Linux.c
index 2c959e722..41f7046cb 100644
--- a/sys/qcam/qcam-Linux.c
+++ b/sys/qcam/qcam-Linux.c
@@ -82,7 +82,7 @@ int
enable_ports (const struct qcam *q)
{
if (q->port < 0x278)
- return 1; /* Better safe than sorry */
+ return 1; /* Better safe than sorry */
if (q->port > 0x3bc)
return 1;
return (ioperm (q->port, 3, 1));
@@ -115,7 +115,7 @@ qc_lock_wait (struct qcam *q, int wait)
#if 1
static struct flock sfl;
- if (-1 == q->fd) { /* we've yet to open the lock file */
+ if (-1 == q->fd) { /* we've yet to open the lock file */
static char lockfile[128];
sprintf (lockfile, "/var/run/LOCK.qcam.0x%x", q->port);
@@ -131,7 +131,7 @@ qc_lock_wait (struct qcam *q, int wait)
sfl.l_type = F_WRLCK;
}
#ifdef TESTING
- if (0 != fcntl (q->fd, F_SETLK, &sfl)) /* non-blocking set lock */
+ if (0 != fcntl (q->fd, F_SETLK, &sfl)) /* non-blocking set lock */
#else
if (0 != fcntl (q->fd, wait ? F_SETLKW : F_SETLK, &sfl))
#endif
@@ -142,9 +142,9 @@ qc_lock_wait (struct qcam *q, int wait)
return 1;
fprintf (stderr, "%s - %d: waiting for exclusive lock on fd %d...\n",
- __FILE__, __LINE__, q->fd);
+ __FILE__, __LINE__, q->fd);
- if (0 != fcntl (q->fd, F_SETLKW, &sfl)) /* "blocking" set lock */
+ if (0 != fcntl (q->fd, F_SETLKW, &sfl)) /* "blocking" set lock */
#endif
{
perror ("fcntl");
@@ -202,7 +202,7 @@ qc_unlock (struct qcam *q)
static struct flock sfl;
#if 1
- if (-1 == q->fd) { /* port was not locked */
+ if (-1 == q->fd) { /* port was not locked */
return 1;
}
@@ -220,7 +220,7 @@ qc_unlock (struct qcam *q)
char lockfile[128];
sprintf (lockfile, "/var/run/LOCK.qcam.0x%x", q->port);
- unlink (lockfile); /* What would I do with an error? */
+ unlink (lockfile); /* What would I do with an error? */
#endif
return 0;