[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[hurd] 19/30: pflocal: avoid nested function
From: |
Samuel Thibault |
Subject: |
[hurd] 19/30: pflocal: avoid nested function |
Date: |
Tue, 22 Sep 2015 21:51:59 +0000 |
This is an automated email from the git hooks/post-receive script.
sthibault pushed a commit to branch upstream
in repository hurd.
commit 06275e247873f44b2a5045df160bf55ec46918dc
Author: Justus Winter <address@hidden>
Date: Tue Sep 8 14:41:39 2015 +0200
pflocal: avoid nested function
* pflocal/io.c (copy_time): Move function out of `S_io_stat', turning
it into a static inline function.
---
pflocal/io.c | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/pflocal/io.c b/pflocal/io.c
index ee6fb84..38d6c1d 100644
--- a/pflocal/io.c
+++ b/pflocal/io.c
@@ -298,6 +298,13 @@ S_io_select_timeout (struct sock_user *user,
return io_select_common (user, reply, reply_type, &ts, select_type);
}
+static inline void
+copy_time (time_value_t *from, time_t *to_sec, long *to_nsec)
+{
+ *to_sec = from->seconds;
+ *to_nsec = from->microseconds * 1000;
+}
+
/* Return the current status of the object. Not all the fields of the
io_statuf_t are meaningful for all objects; however, the access and
modify times, the optimal IO size, and the fs type are meaningful
@@ -308,12 +315,6 @@ S_io_stat (struct sock_user *user, struct stat *st)
struct sock *sock;
struct pipe *rpipe, *wpipe;
- void copy_time (time_value_t *from, time_t *to_sec, long *to_nsec)
- {
- *to_sec = from->seconds;
- *to_nsec = from->microseconds * 1000;
- }
-
if (!user)
return EOPNOTSUPP;
--
Alioth's /usr/local/bin/git-commit-notice on
/srv/git.debian.org/git/pkg-hurd/hurd.git
- [hurd] 08/30: ext2fs: provide unconditional debug macro, (continued)
- [hurd] 08/30: ext2fs: provide unconditional debug macro, Samuel Thibault, 2015/09/22
- [hurd] 16/30: Make procfs accept none or proc as "device", Samuel Thibault, 2015/09/22
- [hurd] 15/30: Fix opening a fifo with O_RDWR, Samuel Thibault, 2015/09/22
- [hurd] 09/30: libdiskfs: fix parent lookup in the name cache, Samuel Thibault, 2015/09/22
- [hurd] 17/30: Also do not realpath "proc" pseudo-device, Samuel Thibault, 2015/09/22
- [hurd] 13/30: Fix build against glibc 2.21, Samuel Thibault, 2015/09/22
- [hurd] 18/30: umount: Do not report errors on making the device go away, Samuel Thibault, 2015/09/22
- [hurd] 20/30: libshouldbeinlibc/maptime: use memory fences, Samuel Thibault, 2015/09/22
- [hurd] 21/30: Do not install libtrivfs mig stub headers, Samuel Thibault, 2015/09/22
- [hurd] 22/30: Install port-deref-deferred.h header for ports.h, Samuel Thibault, 2015/09/22
- [hurd] 19/30: pflocal: avoid nested function,
Samuel Thibault <=
- [hurd] 24/30: Fix closure of local server sockets, Samuel Thibault, 2015/09/22
- [hurd] 23/30: Fix sock_bind(sock,NULL) support, Samuel Thibault, 2015/09/22
- [hurd] 29/30: Define TIME_VALUE_TO_TIMESPEC only when not defined already, Samuel Thibault, 2015/09/22
- [hurd] 25/30: Fix detection of terminated dgram pflocal server, Samuel Thibault, 2015/09/22
- [hurd] 01/30: exec: fix setting the name of early servers, Samuel Thibault, 2015/09/22
- [hurd] 12/30: libdiskfs: rename `error' variable, Samuel Thibault, 2015/09/22
- [hurd] 26/30: Add support for ANSI.SYS SCP/RCP escape codes, Samuel Thibault, 2015/09/22
- [hurd] 27/30: Fix build warning, Samuel Thibault, 2015/09/22
- [hurd] 14/30: Fix race condition in ext2fs when remounting, Samuel Thibault, 2015/09/22
- [hurd] 30/30: Merge remote-tracking branch 'upstream/master' into upstream, Samuel Thibault, 2015/09/22