diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2009-01-14 17:53:11 +0000 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2009-01-14 17:53:11 +0000 |
commit | 1bd2ffdea56a43357d1da924eaf3d93959c5caba (patch) | |
tree | 33a702be3c96f558d5f2a318aee8e6cc430a53ea | |
parent | b2f39fe74ad32831709f15ef125a95c33179187b (diff) | |
download | microcom-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.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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; |