summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2009-01-14 17:53:11 +0000
committerSascha Hauer <s.hauer@pengutronix.de>2009-01-14 17:53:11 +0000
commit1bd2ffdea56a43357d1da924eaf3d93959c5caba (patch)
tree33a702be3c96f558d5f2a318aee8e6cc430a53ea
parentb2f39fe74ad32831709f15ef125a95c33179187b (diff)
downloadmicrocom-1bd2ffdea56a43357d1da924eaf3d93959c5caba.tar.gz
microcom-1bd2ffdea56a43357d1da924eaf3d93959c5caba.tar.xz
remove trailing whitespaces
git-svn-id: https://svn.pengutronix.de/svn/microcom/trunk@11 b6a597e7-0b13-0410-876a-e2d53f4c184b
-rw-r--r--serial.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/serial.c b/serial.c
index b264c71..040e4bf 100644
--- a/serial.c
+++ b/serial.c
@@ -98,22 +98,22 @@ struct ios_ops * serial_init(char *device)
substring++;
else
substring = device;
-
+
strncat(lockfile, substring, PATH_MAX - strlen(lockfile) - 1);
-
+
fd = open(lockfile, O_RDONLY);
if (fd >= 0) {
close(fd);
main_usage(3, "lockfile for port exists", device);
}
-
+
fd = open(lockfile, O_RDWR | O_CREAT, 0444);
if (fd < 0)
main_usage(3, "cannot create lockfile", device);
snprintf(pid_buf, 32, "%ld", (long)getpid());
write(fd, pid_buf, sizeof(pid_t));
- close(fd);
-
+ close(fd);
+
/* open the device */
fd = open(device, O_RDWR);
ops->fd = fd;