From 1bd2ffdea56a43357d1da924eaf3d93959c5caba Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Wed, 14 Jan 2009 17:53:11 +0000 Subject: remove trailing whitespaces git-svn-id: https://svn.pengutronix.de/svn/microcom/trunk@11 b6a597e7-0b13-0410-876a-e2d53f4c184b --- serial.c | 10 +++++----- 1 file 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; -- cgit v1.2.3