[systemd-devel] [PATCH] treewide: fix typos

2015-05-26 Thread Torstein Husebø
---
 NEWS| 4 ++--
 man/journal-remote.conf.xml | 2 +-
 src/libsystemd/sd-bus/bus-control.c | 2 +-
 src/libsystemd/sd-bus/bus-creds.c   | 6 +++---
 src/shared/architecture.c   | 2 +-
 src/shared/architecture.h   | 2 +-
 src/shared/capability.h | 2 +-
 src/shared/fdset.c  | 2 +-
 src/shared/util.c   | 2 +-
 9 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/NEWS b/NEWS
index f72f502129..ee533b4363 100644
--- a/NEWS
+++ b/NEWS
@@ -3997,7 +3997,7 @@ CHANGES WITH 191:
 * HandleSleepKey= in logind.conf has been split up into
   HandleSuspendKey= and HandleHibernateKey=. The old setting
   is not available anymore. X11 and the kernel are
-  distuingishing between these keys and we should too. This
+  distinguishing between these keys and we should too. This
   also means the inhibition lock for these keys has been split
   into two.
 
@@ -4743,7 +4743,7 @@ CHANGES WITH 43:
 
 * Various functionality updates to libsystemd-login.so
 
-* Track class of PAM logins to distuingish greeters from
+* Track class of PAM logins to distinguish greeters from
   normal user logins.
 
 Contributions from: Kay Sievers, Lennart Poettering, Michael
diff --git a/man/journal-remote.conf.xml b/man/journal-remote.conf.xml
index a7b2227182..fc60258d0b 100644
--- a/man/journal-remote.conf.xml
+++ b/man/journal-remote.conf.xml
@@ -83,7 +83,7 @@
   
 ServerKeyFile=
 
-SSL key in PEM format
+SSL key in PEM format.
   
 
   
diff --git a/src/libsystemd/sd-bus/bus-control.c 
b/src/libsystemd/sd-bus/bus-control.c
index fa4c28174d..43ddfc651d 100644
--- a/src/libsystemd/sd-bus/bus-control.c
+++ b/src/libsystemd/sd-bus/bus-control.c
@@ -429,7 +429,7 @@ static int bus_populate_creds_from_items(
 c->mask |= SD_BUS_CREDS_PPID;
 } else if (item->pids.pid == 1) {
 /* The structure doesn't
- * really distuingish the case
+ * really distinguish the case
  * where a process has no
  * parent and where we don't
  * know it because it could
diff --git a/src/libsystemd/sd-bus/bus-creds.c 
b/src/libsystemd/sd-bus/bus-creds.c
index fed66823c7..4d67619cf8 100644
--- a/src/libsystemd/sd-bus/bus-creds.c
+++ b/src/libsystemd/sd-bus/bus-creds.c
@@ -303,7 +303,7 @@ _public_ int sd_bus_creds_get_ppid(sd_bus_creds *c, pid_t 
*ppid) {
 if (!(c->mask & SD_BUS_CREDS_PPID))
 return -ENODATA;
 
-/* PID 1 has no parent process. Let's distuingish the case of
+/* PID 1 has no parent process. Let's distinguish the case of
  * not knowing and not having a parent process by the returned
  * error code. */
 if (c->ppid == 0)
@@ -989,7 +989,7 @@ int bus_creds_add_more(sd_bus_creds *c, uint64_t mask, 
pid_t pid, pid_t tid) {
 if (missing & SD_BUS_CREDS_EXE) {
 r = get_process_exe(pid, &c->exe);
 if (r == -ESRCH) {
-/* Unfortunately we cannot really distuingish
+/* Unfortunately we cannot really distinguish
  * the case here where the process does not
  * exist, and /proc/$PID/exe being unreadable
  * because $PID is a kernel thread. Hence,
@@ -1101,7 +1101,7 @@ int bus_creds_add_more(sd_bus_creds *c, uint64_t mask, 
pid_t pid, pid_t tid) {
 }
 
 /* In case only the exe path was to be read we cannot
- * distuingish the case where the exe path was unreadable
+ * distinguish the case where the exe path was unreadable
  * because the process was a kernel thread, or when the
  * process didn't exist at all. Hence, let's do a final check,
  * to be sure. */
diff --git a/src/shared/architecture.c b/src/shared/architecture.c
index 884abdd3ea..8e72e7a36a 100644
--- a/src/shared/architecture.c
+++ b/src/shared/architecture.c
@@ -35,7 +35,7 @@ int uname_architecture(void) {
  * 1:1. Instead we try to clean it up and break down the
  * confusion on x86 and arm in particular.
  *
- * We do not try to distuingish CPUs not CPU features, but
+ * We do not try to distinguish CPUs not CPU features, but
  * actual architectures, i.e. that have genuinely different
  * code. */
 
diff --git a/src/shared/architecture.h b/src/shared/architecture.h
index cb82418a5e..f5bbf65a90 100644
--- a/src/shared/architecture.h
+++ b/src/shared/architecture.h
@@ -27,7 +27,7 @@
 
 /* A cleaned up architecture definition. We don't want to g

[systemd-devel] [PATCH] treewide: Correct typos and spell plural of bus consistent

2015-05-11 Thread Torstein Husebø
---
 man/hwdb.xml  | 2 +-
 man/nss-myhostname.xml| 2 +-
 man/sd_bus_creds_get_pid.xml  | 2 +-
 man/sd_bus_default.xml| 2 +-
 man/sd_bus_message_append.xml | 2 +-
 man/sd_bus_message_get_monotonic_usec.xml | 2 +-
 man/sd_event_wait.xml | 2 +-
 man/systemctl.xml | 2 +-
 man/systemd-activate.xml  | 4 ++--
 man/systemd-coredump.xml  | 2 +-
 man/systemd-delta.xml | 2 +-
 man/systemd-fstab-generator.xml   | 2 +-
 man/systemd-journal-remote.xml| 2 +-
 man/systemd-nspawn.xml| 4 ++--
 man/systemd.generator.xml | 2 +-
 man/systemd.journal-fields.xml| 2 +-
 man/systemd.mount.xml | 2 +-
 man/systemd.netdev.xml| 6 +++---
 man/systemd.service.xml   | 6 +++---
 src/analyze/analyze-verify.c  | 2 +-
 src/core/dbus.c   | 2 +-
 src/core/main.c   | 2 +-
 src/core/manager.c| 2 +-
 src/gudev/gudevdevice.c   | 2 +-
 src/libsystemd/libsystemd.sym.m4  | 2 +-
 src/libsystemd/sd-bus/bus-kernel.c| 2 +-
 src/libsystemd/sd-rtnl/rtnl-message.c | 2 +-
 src/locale/localectl.c| 4 ++--
 src/shared/barrier.c  | 2 +-
 src/systemctl/systemctl.c | 4 ++--
 src/test/test-sleep.c | 2 +-
 src/udev/udev-builtin-keyboard.c  | 2 +-
 32 files changed, 40 insertions(+), 40 deletions(-)

diff --git a/man/hwdb.xml b/man/hwdb.xml
index b4460c1aee..509dab81c5 100644
--- a/man/hwdb.xml
+++ b/man/hwdb.xml
@@ -58,7 +58,7 @@
   associated key-value pairs. Every record in the hwdb starts with one or
   more match string, specifying a shell glob to compare the database
   lookup string against. Multiple match lines are specified in additional
-  consecutive lines. Every match line is compared indivdually, they are
+  consecutive lines. Every match line is compared individually, they are
   combined by OR. Every match line must start at the first character of
   the line.
 
diff --git a/man/nss-myhostname.xml b/man/nss-myhostname.xml
index cf2b0200f2..2d36df6f6f 100644
--- a/man/nss-myhostname.xml
+++ b/man/nss-myhostname.xml
@@ -90,7 +90,7 @@
 requires a writable /etc file system and is
 fragile because the file might be edited by the administrator at
 the same time. With nss-myhostname enabled
-changing /etc/hosts is unncessary, and on
+changing /etc/hosts is unnecessary, and on
 many systems the file becomes entirely optional.
 
 To activate the NSS modules, myhostname
diff --git a/man/sd_bus_creds_get_pid.xml b/man/sd_bus_creds_get_pid.xml
index 7d68d1ee8d..4debee6124 100644
--- a/man/sd_bus_creds_get_pid.xml
+++ b/man/sd_bus_creds_get_pid.xml
@@ -453,7 +453,7 @@
 
 All functions that take a char***
 parameter will store the answer there as an address of a an array
-of strings. Each invidividual string is NUL-terminated, and the
+of strings. Each individual string is NUL-terminated, and the
 array is NULL-terminated as a whole. It will be valid as long as
 c remains valid, and should not be freed or
 modified by the caller.
diff --git a/man/sd_bus_default.xml b/man/sd_bus_default.xml
index 98ec04ecde..9db264ce59 100644
--- a/man/sd_bus_default.xml
+++ b/man/sd_bus_default.xml
@@ -143,7 +143,7 @@
 recommended to use sd_bus_default(),
 sd_bus_default_user(),
 sd_bus_default_system() to connect to the
-user or system busses.
+user or system buses.
 
 If the $DBUS_SESSION_BUS_ADDRESS environment
 variable is set
diff --git a/man/sd_bus_message_append.xml b/man/sd_bus_message_append.xml
index 11fa07c636..c3bffbdfd9 100644
--- a/man/sd_bus_message_append.xml
+++ b/man/sd_bus_message_append.xml
@@ -87,7 +87,7 @@
 Arguments corresponding to this nested sequence follow the same
 rules as if they were not nested.
 
-A variant is denoted by v. Correspoding
+A variant is denoted by v. Corresponding
 arguments must include a format string denoting a complete type,
 and following that, arguments corresponding to the specified type.
 
diff --git a/man/sd_bus_message_get_monotonic_usec.xml 
b/man/sd_bus_message_get_monotonic_usec.xml
index 42842116a0..d74aaad7dd 100644
--- a/man/sd_bus_message_get_monotonic_usec.xml
+++ b/man/sd_bus_message_get_monotonic_usec.xml
@@ -94,7 +94,7 @@
 a global, monotonically increasing sequence number to all messages
 transmitted on the local system, at the time the message was sent.
 This sequence number is useful for determining message send order,
-even across different busses of the local system. The sequence
+even across different buses of the local system. The sequence
 nu

[systemd-devel] [PATCH] treewide: fix typos

2015-04-30 Thread Torstein Husebø
---
 man/systemd.unit.xml| 2 +-
 src/import/export-tar.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/man/systemd.unit.xml b/man/systemd.unit.xml
index c2e374a94e..0aa1eeac77 100644
--- a/man/systemd.unit.xml
+++ b/man/systemd.unit.xml
@@ -1250,7 +1250,7 @@
   
   %H
   Host name
-  The hostname of the running system at the point in time the unit 
configuation is loaded.
+  The hostname of the running system at the point in time the unit 
configuration is loaded.
   
   
   %v
diff --git a/src/import/export-tar.c b/src/import/export-tar.c
index 73e1faecf3..d31295745f 100644
--- a/src/import/export-tar.c
+++ b/src/import/export-tar.c
@@ -136,7 +136,7 @@ static void tar_export_report_progress(TarExport *e) {
 unsigned percent;
 assert(e);
 
-/* Do we have any quota info? I fnot, we don't know anything about the 
progress */
+/* Do we have any quota info? If not, we don't know anything about the 
progress */
 if (e->quota_referenced == (uint64_t) -1)
 return;
 
-- 
2.3.7

___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


[systemd-devel] [PATCH] Fix typos

2015-03-09 Thread Torstein Husebø
---
 man/systemd.network.xml | 2 +-
 src/systemd/sd-daemon.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/man/systemd.network.xml b/man/systemd.network.xml
index 3522551293..5d7518b348 100644
--- a/man/systemd.network.xml
+++ b/man/systemd.network.xml
@@ -568,7 +568,7 @@
   
 DHCP client identifier to use. Either mac
 to use the MAC address of the link or duid
-(the default) to use a RFC4361-complient Client ID.
+(the default) to use a RFC4361-compliant Client ID.
   
 
 
diff --git a/src/systemd/sd-daemon.h b/src/systemd/sd-daemon.h
index b878b4d8a6..861dc8f1f4 100644
--- a/src/systemd/sd-daemon.h
+++ b/src/systemd/sd-daemon.h
@@ -168,7 +168,7 @@ int sd_is_mq(int fd, const char *path);
   value daemons should send is "READY=1".
 
  STATUS=...   Passes a single-line status string back to systemd
-  that describes the daemon state. This is free-from
+  that describes the daemon state. This is free-form
   and can be used for various purposes: general state
   feedback, fsck-like programs could pass completion
   percentages and failing programs could pass a human
-- 
2.3.2

___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


[systemd-devel] [PATCH] man: fix typo

2015-02-11 Thread Torstein Husebø
---
 man/systemd.generator.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/man/systemd.generator.xml b/man/systemd.generator.xml
index 519da15910..ccb698752a 100644
--- a/man/systemd.generator.xml
+++ b/man/systemd.generator.xml
@@ -101,7 +101,7 @@
 /etc.
 
 After installing new generators or updating the
-configuration, systemctl daemon-reloead may be
+configuration, systemctl daemon-reload may be
 executed. This will delete the previous configuration created by
 generators, re-run all generators, and cause
 systemd to reload units from disk. See
-- 
2.3.0

___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


[systemd-devel] [PATCH] Correct typos and use consistent spelling

2015-02-09 Thread Torstein Husebø
---
 man/systemd.link.xml | 2 +-
 man/systemd.unit.xml | 2 +-
 src/libsystemd-network/dhcp-identifier.c | 2 +-
 src/libsystemd-network/dhcp-network.c| 2 +-
 src/libsystemd-network/sd-dhcp-server.c  | 2 +-
 src/network/networkd-link.c  | 2 +-
 src/network/networkd-network.c   | 4 ++--
 7 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/man/systemd.link.xml b/man/systemd.link.xml
index d5c8b9968d..afc0ad8c5e 100644
--- a/man/systemd.link.xml
+++ b/man/systemd.link.xml
@@ -218,7 +218,7 @@
 boot for the given machine and the given device, but
 which is otherwise random. This feature depends on 
ID_NET_NAME_*
 properties existing for the link, on hardware where these
-properties are not set the generation of a persistent mac 
address
+properties are not set the generation of a persistent MAC 
address
 will fail.
   
 
diff --git a/man/systemd.unit.xml b/man/systemd.unit.xml
index 4dae631389..09e11b4711 100644
--- a/man/systemd.unit.xml
+++ b/man/systemd.unit.xml
@@ -1362,7 +1362,7 @@ WantedBy=multi-user.target
 
   Now one wants to change some settings as an administrator:
   firstly, in the local setup, /srv/webserver
-  might not exit, because the HTTP server is configured to use
+  might not exist, because the HTTP server is configured to use
   /srv/www instead. Secondly, the local
   configuration makes the HTTP server also depend on a memory
   cache service, memcached.service, that
diff --git a/src/libsystemd-network/dhcp-identifier.c 
b/src/libsystemd-network/dhcp-identifier.c
index e4b0ce6b2e..419a450436 100644
--- a/src/libsystemd-network/dhcp-identifier.c
+++ b/src/libsystemd-network/dhcp-identifier.c
@@ -90,7 +90,7 @@ int dhcp_identifier_set_iaid(int ifindex, uint8_t *mac, 
size_t mac_len, uint32_t
 if (name)
 siphash24((uint8_t*)&id, name, strlen(name), HASH_KEY.bytes);
 else
-/* fall back to mac address if no predictable name available */
+/* fall back to MAC address if no predictable name available */
 siphash24((uint8_t*)&id, mac, mac_len, HASH_KEY.bytes);
 
 /* fold into 32 bits */
diff --git a/src/libsystemd-network/dhcp-network.c 
b/src/libsystemd-network/dhcp-network.c
index 29e9993f66..5f2d2cfbfd 100644
--- a/src/libsystemd-network/dhcp-network.c
+++ b/src/libsystemd-network/dhcp-network.c
@@ -63,7 +63,7 @@ static int _bind_raw_socket(int ifindex, union sockaddr_union 
*link,
 BPF_STMT(BPF_LD + BPF_B + BPF_ABS, offsetof(DHCPPacket, 
dhcp.htype)),  /* A <- DHCP header type */
 BPF_JUMP(BPF_JMP + BPF_JEQ + BPF_K, arp_type, 1, 0),   
/* header type == arp_type ? */
 BPF_STMT(BPF_RET + BPF_K, 0),  
/* ignore */
-BPF_STMT(BPF_LD + BPF_B + BPF_ABS, offsetof(DHCPPacket, 
dhcp.hlen)),   /* A <- mac address length */
+BPF_STMT(BPF_LD + BPF_B + BPF_ABS, offsetof(DHCPPacket, 
dhcp.hlen)),   /* A <- MAC address length */
 BPF_JUMP(BPF_JMP + BPF_JEQ + BPF_K, dhcp_hlen, 1, 0),  
/* address length == dhcp_hlen ? */
 BPF_STMT(BPF_RET + BPF_K, 0),  
/* ignore */
 BPF_STMT(BPF_LD + BPF_W + BPF_ABS, offsetof(DHCPPacket, 
dhcp.xid)),/* A <- client identifier */
diff --git a/src/libsystemd-network/sd-dhcp-server.c 
b/src/libsystemd-network/sd-dhcp-server.c
index 24fedd2375..3f89f344d7 100644
--- a/src/libsystemd-network/sd-dhcp-server.c
+++ b/src/libsystemd-network/sd-dhcp-server.c
@@ -597,7 +597,7 @@ static int ensure_sane_request(DHCPRequest *req, 
DHCPMessage *message) {
 
 req->message = message;
 
-/* set client id based on mac address if client did not send an 
explicit
+/* set client id based on MAC address if client did not send an 
explicit
one */
 if (!req->client_id.data) {
 uint8_t *data;
diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c
index 1f96c634ef..0b1cac1055 100644
--- a/src/network/networkd-link.c
+++ b/src/network/networkd-link.c
@@ -1133,7 +1133,7 @@ static int link_up(Link *link) {
 
 r = sd_rtnl_message_close_container(req);
 if (r < 0) {
-log_link_error(link, "Could not close IFLA_AF_SPEC contaire: 
%s", strerror(-r));
+log_link_error(link, "Could not close IFLA_AF_SPEC container: 
%s", strerror(-r));
 return r;
 }
 
diff --git a/src/network/networkd-network.c b/src/network/networkd-network.c
index 9ebc2d15aa..3ebd4d7d58 100644
--- a/src/network/networkd-network.c
+++ b/src/network/networkd-network.c
@@ -680,12 +680,12 @@ int config_parse_token(
 
 r = in_addr_is_null(AF_INET6, &buf

[systemd-devel] [PATCH] treewide: fix multiple typos

2015-01-26 Thread Torstein Husebø
---
 NEWS  | 8 
 TODO  | 2 +-
 man/crypttab.xml  | 2 +-
 man/networkctl.xml| 2 +-
 man/sd_event_add_child.xml| 2 +-
 man/sd_notify.xml | 2 +-
 shell-completion/zsh/_systemd-analyze | 2 +-
 src/core/cgroup.c | 2 +-
 src/core/load-fragment.c  | 2 +-
 src/import/import-dkr.c   | 2 +-
 src/machine/machinectl.c  | 2 +-
 src/resolve/resolved-manager.c| 2 +-
 12 files changed, 15 insertions(+), 15 deletions(-)

diff --git a/NEWS b/NEWS
index d4d505d5d9..dbfec9a61d 100644
--- a/NEWS
+++ b/NEWS
@@ -985,7 +985,7 @@ CHANGES WITH 214:
   fact that many distributions only ship a very small number
   of LSB/SysV init scripts nowadays.
 
-* Priviliged Xen (dom0) domains are not considered
+* Privileged Xen (dom0) domains are not considered
   virtualization anymore by the virtualization detection
   logic. After all, they generally have unrestricted access to
   the hardware and usually are used to manage the unprivileged
@@ -2048,8 +2048,8 @@ CHANGES WITH 208:
 * The memory.use_hierarchy cgroup attribute is now enabled for
   all cgroups systemd creates in the memory cgroup
   hierarchy. This option is likely to be come the built-in
-  default in the kernel anyway, and the non-hierarchial mode
-  never made much sense in the intrinsically hierarchial
+  default in the kernel anyway, and the non-hierarchical mode
+  never made much sense in the intrinsically hierarchical
   cgroup system.
 
 * A new field _SYSTEMD_SLICE= is logged along with all journal
@@ -2309,7 +2309,7 @@ CHANGES WITH 205:
   together, or apply resource limits on them.
 
   Slice units may be used to partition system resources in an
-  hierarchial fashion and then assign other units to them. By
+  hierarchical fashion and then assign other units to them. By
   default there are now three slices: system.slice (for all
   system services), user.slice (for all user sessions),
   machine.slice (for VMs and containers).
diff --git a/TODO b/TODO
index 2406a872f0..1077cc16c8 100644
--- a/TODO
+++ b/TODO
@@ -49,7 +49,7 @@ Features:
 
 * introduce systemd-nspawn-ephemeral@.service, and hook it into "machinectl 
start" with a new --ephemeral switch
 
-* logind,machined: add generic catch-all polkit verbs for most priviliged 
operations, similar to systemd itself
+* logind,machined: add generic catch-all polkit verbs for most privileged 
operations, similar to systemd itself
 
 * "machinectl status" should also show internal logs of the container in 
question
 
diff --git a/man/crypttab.xml b/man/crypttab.xml
index 737b232335..1a1002ecf4 100644
--- a/man/crypttab.xml
+++ b/man/crypttab.xml
@@ -337,7 +337,7 @@
 systemd should wait for a device to
 show up before giving up on the
 entry. The argument is a time in
-seconds or explicitly specifified
+seconds or explicitly specified
 units of s,
 min,
 h,
diff --git a/man/networkctl.xml b/man/networkctl.xml
index c3930909b1..204551194d 100644
--- a/man/networkctl.xml
+++ b/man/networkctl.xml
@@ -45,7 +45,7 @@ along with systemd; If not, see 
.
 
   
 networkctl
-Query the statuc of network links
+Query the status of network links
   
 
   
diff --git a/man/sd_event_add_child.xml b/man/sd_event_add_child.xml
index ee524e171f..cf8ed0af6c 100644
--- a/man/sd_event_add_child.xml
+++ b/man/sd_event_add_child.xml
@@ -146,7 +146,7 @@ along with systemd; If not, see 
.
 -EINVAL
 
 An invalid argument has been passed. This includes
-specyfing an empty mask in options or a mask
+specifying an empty mask in options or a mask
 which contains values different than a combination of
 WEXITED, WSTOPPED, and
 WCONTINUED.
diff --git a/man/sd_notify.xml b/man/sd_notify.xml
index 2bf3383c0d..b7c33da63a 100644
--- a/man/sd_notify.xml
+++ b/man/sd_notify.xml
@@ -256,7 +256,7 @@
 zero). See
 
systemd.service5
 for details. Multiple arrays of file
-descriptors may be sent in seperate
+descriptors may be sent in separate
 messages, in which case the arrays are
 combined. Note that the service
 manager removes duplicate file
diff 

[systemd-devel] [PATCH] libsystemd-network: fix typo in lldp

2015-01-05 Thread Torstein Husebø
---
 src/libsystemd-network/lldp-internal.h |  2 +-
 src/libsystemd-network/sd-lldp.c   | 12 ++--
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/libsystemd-network/lldp-internal.h 
b/src/libsystemd-network/lldp-internal.h
index c7235c11ee..8e09ee8f3a 100644
--- a/src/libsystemd-network/lldp-internal.h
+++ b/src/libsystemd-network/lldp-internal.h
@@ -31,7 +31,7 @@
 typedef struct lldp_neighbour_port lldp_neighbour_port;
 typedef struct lldp_chassis lldp_chassis;
 typedef struct lldp_chassis_id lldp_chassis_id;
-typedef struct lldp_agent_statitics lldp_agent_statitics;
+typedef struct lldp_agent_statistics lldp_agent_statistics;
 
 struct lldp_neighbour_port {
 uint8_t type;
diff --git a/src/libsystemd-network/sd-lldp.c b/src/libsystemd-network/sd-lldp.c
index 86c734b8c2..19ef2ccdbd 100644
--- a/src/libsystemd-network/sd-lldp.c
+++ b/src/libsystemd-network/sd-lldp.c
@@ -48,7 +48,7 @@ typedef enum LLDPAgentRXState {
 } LLDPAgentRXState;
 
 /* Section 10.5.2.2 Reception counters */
-struct lldp_agent_statitics {
+struct lldp_agent_statistics {
 uint64_t stats_ageouts_total;
 uint64_t stats_frames_discarded_total;
 uint64_t stats_frames_in_errors_total;
@@ -68,7 +68,7 @@ struct sd_lldp {
 void *userdata;
 
 LLDPAgentRXState rx_state;
-lldp_agent_statitics statitics;
+lldp_agent_statistics statistics;
 };
 
 static unsigned long chassis_id_hash_func(const void *p,
@@ -134,7 +134,7 @@ static int lldp_receive_frame(sd_lldp *lldp, tlv_packet 
*tlv) {
  hashmap_size(lldp->neighbour_mib),
  prioq_size(lldp->by_expiry));
 
-lldp->statitics.stats_frames_in_total ++;
+lldp->statistics.stats_frames_in_total ++;
 
 return 0;
 
@@ -339,8 +339,8 @@ int lldp_handle_packet(tlv_packet *tlv, uint16_t length) {
 lldp_set_state(lldp, LLDP_AGENT_RX_WAIT_FOR_FRAME);
 
 if (malformed) {
-lldp->statitics.stats_frames_discarded_total ++;
-lldp->statitics.stats_frames_in_errors_total ++;
+lldp->statistics.stats_frames_discarded_total ++;
+lldp->statistics.stats_frames_in_errors_total ++;
 }
 
 tlv_packet_free(tlv);
@@ -404,7 +404,7 @@ static void lldp_mib_delete_objects(sd_lldp *lldp) {
 
 lldp_neighbour_port_remove_and_free(p);
 
-lldp->statitics.stats_ageouts_total ++;
+lldp->statistics.stats_ageouts_total ++;
 }
 }
 
-- 
2.2.1

___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


[systemd-devel] [PATCH 4/6] shared: correct spacing near eol in code comments

2014-12-10 Thread Torstein Husebø
---
 src/shared/clock-util.c | 4 ++--
 src/shared/util.c   | 6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/shared/clock-util.c b/src/shared/clock-util.c
index fc49393c72..96684681a4 100644
--- a/src/shared/clock-util.c
+++ b/src/shared/clock-util.c
@@ -121,7 +121,7 @@ int clock_set_timezone(int *min) {
 minutesdelta = tm->tm_gmtoff / 60;
 
 tz.tz_minuteswest = -minutesdelta;
-tz.tz_dsttime = 0; /* DST_NONE*/
+tz.tz_dsttime = 0; /* DST_NONE */
 
 /*
  * If the RTC does not run in UTC but in local time, the very first
@@ -141,7 +141,7 @@ int clock_reset_timewarp(void) {
 struct timezone tz;
 
 tz.tz_minuteswest = 0;
-tz.tz_dsttime = 0; /* DST_NONE*/
+tz.tz_dsttime = 0; /* DST_NONE */
 
 /*
  * The very first call to settimeofday() does time warp magic. Do a
diff --git a/src/shared/util.c b/src/shared/util.c
index 26a4f72b43..6383c0f80a 100644
--- a/src/shared/util.c
+++ b/src/shared/util.c
@@ -558,7 +558,7 @@ const char* split(const char **state, size_t *l, const char 
*separator, bool quo
 *l = strcspn_escaped(current + 1, quotechars);
 if (current[*l + 1] == '\0' ||
 (current[*l + 2] && !strchr(separator, current[*l + 2]))) {
-/* right quote missing or garbage at the end*/
+/* right quote missing or garbage at the end */
 *state = current;
 return NULL;
 }
@@ -1436,7 +1436,7 @@ char *cunescape_length_with_prefix(const char *s, size_t 
length, const char *pre
 }
 
 case 0:
-/* premature end of string.*/
+/* premature end of string. */
 *(t++) = '\\';
 goto finish;
 
@@ -3662,7 +3662,7 @@ char *unquote(const char *s, const char* quotes) {
 /* This is rather stupid, simply removes the heading and
  * trailing quotes if there is one. Doesn't care about
  * escaping or anything. We should make this smarter one
- * day...*/
+ * day... */
 
 l = strlen(s);
 if (l < 2)
-- 
2.2.0

___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


[systemd-devel] [PATCH 3/6] journald: correct spacing near eol code comments

2014-12-10 Thread Torstein Husebø
---
 src/journal/journal-file.c| 3 ++-
 src/journal/journal-verify.c  | 3 ++-
 src/journal/journald-server.c | 6 +++---
 3 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/src/journal/journal-file.c b/src/journal/journal-file.c
index c5d2d19433..ca28bd53ef 100644
--- a/src/journal/journal-file.c
+++ b/src/journal/journal-file.c
@@ -2527,7 +2527,8 @@ int journal_file_open(
  * currently no usable API to query this, hence let's
  * emulate this via extended attributes. If extended
  * attributes are not supported we'll just skip this,
- * and rely solely on mtime/atime/ctime of the file.*/
+ * and rely solely on mtime/atime/ctime of the file.
+ */
 
 crtime = htole64((uint64_t) now(CLOCK_REALTIME));
 fsetxattr(f->fd, "user.crtime_usec", &crtime, sizeof(crtime), 
XATTR_CREATE);
diff --git a/src/journal/journal-verify.c b/src/journal/journal-verify.c
index 7e3c974b33..f20798cfad 100644
--- a/src/journal/journal-verify.c
+++ b/src/journal/journal-verify.c
@@ -427,7 +427,8 @@ static int entry_points_to_data(
 
 /* Check if this entry is also in main entry array. Since the
  * main entry array has already been verified we can rely on
- * its consistency.*/
+ * its consistency.
+ */
 
 i = 0;
 n = le64toh(f->header->n_entries);
diff --git a/src/journal/journald-server.c b/src/journal/journald-server.c
index 80c9736420..a2a2e197c0 100644
--- a/src/journal/journald-server.c
+++ b/src/journal/journald-server.c
@@ -811,7 +811,7 @@ static void dispatch_message_real(
  * realuid is not root, in order not to accidentally
  * leak privileged information to the user that is
  * logged by a privileged process that is part of an
- * unprivileged session.*/
+ * unprivileged session. */
 journal_uid = owner;
 else
 journal_uid = 0;
@@ -1131,7 +1131,7 @@ int process_datagram(sd_event_source *es, int fd, 
uint32_t revents, void *userda
  * the SELinux people this will change and it
  * will probably be identical to NAME_MAX. For
  * now we use that, but this should be updated
- * one day when the final limit is known.*/
+ * one day when the final limit is known. */
 uint8_t buf[CMSG_SPACE(sizeof(struct ucred)) +
 CMSG_SPACE(sizeof(struct timeval)) +
 CMSG_SPACE(sizeof(int)) + /* fd */
@@ -1158,7 +1158,7 @@ int process_datagram(sd_event_source *es, int fd, 
uint32_t revents, void *userda
  * don't rely on it. */
 (void) ioctl(fd, SIOCINQ, &v);
 
-/* Fix it up, if it is too small. We use the same fixed value 
as auditd here. Awful!*/
+/* Fix it up, if it is too small. We use the same fixed value 
as auditd here. Awful! */
 m = PAGE_ALIGN(MAX3((size_t) v + 1,
 (size_t) LINE_MAX,
 ALIGN(sizeof(struct nlmsghdr)) + 
ALIGN((size_t) MAX_AUDIT_MESSAGE_LENGTH)) + 1);
-- 
2.2.0

___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


[systemd-devel] [PATCH 5/6] core: correct spacing near eol in code comments

2014-12-10 Thread Torstein Husebø
---
 src/core/device.c  | 3 ++-
 src/core/execute.c | 2 +-
 src/core/main.c| 3 ++-
 src/core/manager.c | 2 +-
 src/core/unit.h| 2 +-
 5 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/src/core/device.c b/src/core/device.c
index b254e45b33..c9b572a845 100644
--- a/src/core/device.c
+++ b/src/core/device.c
@@ -382,7 +382,8 @@ static int device_process_new_device(Manager *m, struct 
udev_device *dev) {
  * same /dev/disk/by-label/xxx link because they have
  * the same label. We want to make sure that the same
  * device that won the symlink wins in systemd, so we
- * check the device node major/minor*/
+ * check the device node major/minor
+ */
 if (stat(p, &st) >= 0)
 if ((!S_ISBLK(st.st_mode) && !S_ISCHR(st.st_mode)) ||
 st.st_rdev != udev_device_get_devnum(dev))
diff --git a/src/core/execute.c b/src/core/execute.c
index 955090c446..7da286ace8 100644
--- a/src/core/execute.c
+++ b/src/core/execute.c
@@ -130,7 +130,7 @@ static int shift_fds(int fds[], unsigned n_fds) {
 fds[i] = nfd;
 
 /* Hmm, the fd we wanted isn't free? Then
- * let's remember that and try again from here*/
+ * let's remember that and try again from here */
 if (nfd != i+3 && restart_from < 0)
 restart_from = i;
 }
diff --git a/src/core/main.c b/src/core/main.c
index 140f2195ac..da4e94c472 100644
--- a/src/core/main.c
+++ b/src/core/main.c
@@ -1543,7 +1543,8 @@ int main(int argc, char *argv[]) {
  * managers and installers to provision a couple of
  * files already. If the container manager wants to
  * provision the machine ID itself it should pass
- * $container_uuid to PID 1.*/
+ * $container_uuid to PID 1.
+ */
 
 empty_etc = access("/etc/machine-id", F_OK) < 0;
 if (empty_etc)
diff --git a/src/core/manager.c b/src/core/manager.c
index 6382400af4..7653850cd4 100644
--- a/src/core/manager.c
+++ b/src/core/manager.c
@@ -440,7 +440,7 @@ static int manager_setup_signals(Manager *m) {
 SIGRTMIN+26, /* systemd: set log target to 
journal-or-kmsg */
 SIGRTMIN+27, /* systemd: set log target to console */
 SIGRTMIN+28, /* systemd: set log target to kmsg */
-SIGRTMIN+29, /* systemd: set log target to 
syslog-or-kmsg (obsolete)*/
+SIGRTMIN+29, /* systemd: set log target to 
syslog-or-kmsg (obsolete) */
 
 /* ... one free signal here SIGRTMIN+30 ... */
 #endif
diff --git a/src/core/unit.h b/src/core/unit.h
index 0e45229d7b..f6587ba5f0 100644
--- a/src/core/unit.h
+++ b/src/core/unit.h
@@ -284,7 +284,7 @@ struct UnitVTable {
  * that */
 size_t exec_runtime_offset;
 
-/* The name of the configuration file section with the private 
settings of this unit*/
+/* The name of the configuration file section with the private 
settings of this unit */
 const char *private_section;
 
 /* Config file sections this unit type understands, separated
-- 
2.2.0

___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


[systemd-devel] [PATCH 6/6] treewide: correct spacing near eol in code comments

2014-12-10 Thread Torstein Husebø
---
 src/hostname/hostnamed.c| 2 +-
 src/libsystemd-terminal/term-internal.h | 2 +-
 src/libsystemd/sd-id128/sd-id128.c  | 2 +-
 src/login/logind-dbus.c | 2 +-
 src/systemctl/systemctl.c   | 2 +-
 src/systemd/sd-login.h  | 2 +-
 src/test/test-strbuf.c  | 2 +-
 src/udev/udev-builtin-net_id.c  | 2 +-
 8 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/hostname/hostnamed.c b/src/hostname/hostnamed.c
index 0b38cde169..970e800769 100644
--- a/src/hostname/hostnamed.c
+++ b/src/hostname/hostnamed.c
@@ -276,7 +276,7 @@ static int context_update_kernel_hostname(Context *c) {
 if (hostname_is_useful(static_hn))
 hn = static_hn;
 
-/* ... the transient host name, (ie: DHCP) comes next ...*/
+/* ... the transient host name, (ie: DHCP) comes next ... */
 else if (!isempty(c->data[PROP_HOSTNAME]))
 hn = c->data[PROP_HOSTNAME];
 
diff --git a/src/libsystemd-terminal/term-internal.h 
b/src/libsystemd-terminal/term-internal.h
index 53713dd64d..8c6a00188c 100644
--- a/src/libsystemd-terminal/term-internal.h
+++ b/src/libsystemd-terminal/term-internal.h
@@ -472,7 +472,7 @@ enum {
 TERM_CMD_VPR,   /* 
vertical-line-position-relative */
 TERM_CMD_VT,/* vertical-tab */
 TERM_CMD_XTERM_CLLHP,   /* 
xterm-cursor-lower-left-hp-bugfix */
-TERM_CMD_XTERM_IHMT,/* 
xterm-initiate-highlight-mouse-tracking*/
+TERM_CMD_XTERM_IHMT,/* 
xterm-initiate-highlight-mouse-tracking */
 TERM_CMD_XTERM_MLHP,/* xterm-memory-lock-hp-bugfix 
*/
 TERM_CMD_XTERM_MUHP,/* 
xterm-memory-unlock-hp-bugfix */
 TERM_CMD_XTERM_RPM, /* xterm-restore-private-mode 
*/
diff --git a/src/libsystemd/sd-id128/sd-id128.c 
b/src/libsystemd/sd-id128/sd-id128.c
index 233ffa070b..c876f6e381 100644
--- a/src/libsystemd/sd-id128/sd-id128.c
+++ b/src/libsystemd/sd-id128/sd-id128.c
@@ -222,7 +222,7 @@ _public_ int sd_id128_randomize(sd_id128_t *ret) {
 
 /* Turn this into a valid v4 UUID, to be nice. Note that we
  * only guarantee this for newly generated UUIDs, not for
- * pre-existing ones.*/
+ * pre-existing ones. */
 
 *ret = make_v4_uuid(t);
 return 0;
diff --git a/src/login/logind-dbus.c b/src/login/logind-dbus.c
index 48395f6f94..8ea653f70d 100644
--- a/src/login/logind-dbus.c
+++ b/src/login/logind-dbus.c
@@ -727,7 +727,7 @@ static int method_create_session(sd_bus *bus, 
sd_bus_message *message, void *use
 
 /* Now, let's wait until the slice unit and stuff got
  * created. We send the reply back from
- * session_send_create_reply().*/
+ * session_send_create_reply(). */
 
 return 1;
 
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c
index b1441ad86a..2ceb303f1b 100644
--- a/src/systemctl/systemctl.c
+++ b/src/systemctl/systemctl.c
@@ -752,7 +752,7 @@ struct socket_info {
 
 /* Note: triggered is a list here, although it almost certainly
  * will always be one unit. Nevertheless, dbus API allows for multiple
- * values, so let's follow that.*/
+ * values, so let's follow that. */
 char** triggered;
 
 /* The strv above is shared. free is set only in the first one. */
diff --git a/src/systemd/sd-login.h b/src/systemd/sd-login.h
index 64b882724c..24c8595064 100644
--- a/src/systemd/sd-login.h
+++ b/src/systemd/sd-login.h
@@ -119,7 +119,7 @@ int sd_uid_get_sessions(uid_t uid, int require_active, char 
***sessions);
 
 /* Return seats of user is on. If require_active is true, this will look for
  * active seats only. Returns the number of seats.
- * If seats is NULL, this will just return the number of seats.*/
+ * If seats is NULL, this will just return the number of seats. */
 int sd_uid_get_seats(uid_t uid, int require_active, char ***seats);
 
 /* Return 1 if the session is active. */
diff --git a/src/test/test-strbuf.c b/src/test/test-strbuf.c
index 43cb92b74b..4ec648ae66 100644
--- a/src/test/test-strbuf.c
+++ b/src/test/test-strbuf.c
@@ -48,7 +48,7 @@ static void test_strbuf(void) {
 /* check the content of the buffer directly */
 l = strv_parse_nulstr(sb->buf, sb->len);
 
-assert_se(streq(l[0], "")); /* root*/
+assert_se(streq(l[0], "")); /* root */
 assert_se(streq(l[1], "waldo"));
 assert_se(streq(l[2], "foo"));
 assert_se(streq(l[3], "bar"));
diff --git a/src/udev/udev-builtin-net_id.c b/src/udev/udev-builtin-net_id.c
index 3e2c8f8a6a..95e54520b0 100644
--- a/src/udev/udev-builtin-net_id.c
+++ b/src/udev/udev-builtin-net_id.c
@@ -307,7 +307,7 @@ static int names_usb(struct udev_device *dev, struct 
netnames *names) {
 s[0] = '\0';
 interf = s+1;
 

[systemd-devel] [PATCH 2/6] sd-bus: correct spacing near eol in code comments

2014-12-10 Thread Torstein Husebø
---
 src/libsystemd/sd-bus/bus-match.c | 2 +-
 src/libsystemd/sd-bus/bus-message.c   | 6 +++---
 src/libsystemd/sd-bus/sd-bus.c| 2 +-
 src/libsystemd/sd-bus/test-bus-gvariant.c | 2 +-
 4 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/libsystemd/sd-bus/bus-match.c 
b/src/libsystemd/sd-bus/bus-match.c
index 3a31aa0ebf..162f0ab608 100644
--- a/src/libsystemd/sd-bus/bus-match.c
+++ b/src/libsystemd/sd-bus/bus-match.c
@@ -234,7 +234,7 @@ static bool value_node_same(
 
 /* Tests parameters against this value node, not doing prefix
  * magic and stuff, i.e. this one actually compares the match
- * itself.*/
+ * itself. */
 
 assert(node);
 assert(node->type == BUS_MATCH_VALUE);
diff --git a/src/libsystemd/sd-bus/bus-message.c 
b/src/libsystemd/sd-bus/bus-message.c
index 06d8d770fd..a0b990d7b6 100644
--- a/src/libsystemd/sd-bus/bus-message.c
+++ b/src/libsystemd/sd-bus/bus-message.c
@@ -1346,7 +1346,7 @@ int message_append_basic(sd_bus_message *m, char type, 
const void *p, const void
 } else {
 char *e;
 
-/* Maybe we can append to the signature? But only if this is 
the top-level container*/
+/* Maybe we can append to the signature? But only if this is 
the top-level container */
 if (c->enclosing != 0)
 return -ENXIO;
 
@@ -1539,7 +1539,7 @@ _public_ int sd_bus_message_append_string_space(
 } else {
 char *e;
 
-/* Maybe we can append to the signature? But only if this is 
the top-level container*/
+/* Maybe we can append to the signature? But only if this is 
the top-level container */
 if (c->enclosing != 0)
 return -ENXIO;
 
@@ -2693,7 +2693,7 @@ _public_ int sd_bus_message_append_string_memfd(
 } else {
 char *e;
 
-/* Maybe we can append to the signature? But only if this is 
the top-level container*/
+/* Maybe we can append to the signature? But only if this is 
the top-level container */
 if (c->enclosing != 0)
 return -ENXIO;
 
diff --git a/src/libsystemd/sd-bus/sd-bus.c b/src/libsystemd/sd-bus/sd-bus.c
index ef0b15185f..fd59bac557 100644
--- a/src/libsystemd/sd-bus/sd-bus.c
+++ b/src/libsystemd/sd-bus/sd-bus.c
@@ -2713,7 +2713,7 @@ static int bus_poll(sd_bus *bus, bool need_more, uint64_t 
timeout_usec) {
 if (need_more)
 /* The caller really needs some more data, he doesn't
  * care about what's already read, or any timeouts
- * except its own.*/
+ * except its own. */
 e |= POLLIN;
 else {
 usec_t until;
diff --git a/src/libsystemd/sd-bus/test-bus-gvariant.c 
b/src/libsystemd/sd-bus/test-bus-gvariant.c
index 56df5d0b48..d700a35b0c 100644
--- a/src/libsystemd/sd-bus/test-bus-gvariant.c
+++ b/src/libsystemd/sd-bus/test-bus-gvariant.c
@@ -140,7 +140,7 @@ static void test_marshal(void) {
 if (r < 0)
 exit(EXIT_TEST_SKIP);
 
-bus->message_version = 2; /* dirty hack to enable gvariant*/
+bus->message_version = 2; /* dirty hack to enable gvariant */
 
 assert_se(sd_bus_message_new_method_call(bus, &m, "a.service.name", 
"/an/object/path/which/is/really/really/long/so/that/we/hit/the/eight/bit/boundary/by/quite/some/margin/to/test/this/stuff/that/it/really/works",
 "an.interface.name", "AMethodName") >= 0);
 
-- 
2.2.0

___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


[systemd-devel] [PATCH 0/6] Correct spacing near eol in code comments

2014-12-10 Thread Torstein Husebø
Hi,
this patch set inserts missing spaces and newlines in code comments.
No code change.

Torstein Husebø (6):
  networkd/resolved: correct spacing near eol in code comments
  sd-bus: correct spacing near eol in code comments
  journald: correct spacing near eol code comments
  shared: correct spacing near eol in code comments
  core: correct spacing near eol in code comments
  treewide: correct spacing near eol in code comments

 src/core/device.c | 3 ++-
 src/core/execute.c| 2 +-
 src/core/main.c   | 3 ++-
 src/core/manager.c| 2 +-
 src/core/unit.h   | 2 +-
 src/hostname/hostnamed.c  | 2 +-
 src/journal/journal-file.c| 3 ++-
 src/journal/journal-verify.c  | 3 ++-
 src/journal/journald-server.c | 6 +++---
 src/libsystemd-terminal/term-internal.h   | 2 +-
 src/libsystemd/sd-bus/bus-match.c | 2 +-
 src/libsystemd/sd-bus/bus-message.c   | 6 +++---
 src/libsystemd/sd-bus/sd-bus.c| 2 +-
 src/libsystemd/sd-bus/test-bus-gvariant.c | 2 +-
 src/libsystemd/sd-id128/sd-id128.c| 2 +-
 src/login/logind-dbus.c   | 2 +-
 src/network/networkd-address.c| 2 +-
 src/network/networkd-netdev.c | 2 +-
 src/resolve/resolved-dns-scope.c  | 2 +-
 src/shared/clock-util.c   | 4 ++--
 src/shared/util.c | 6 +++---
 src/systemctl/systemctl.c | 2 +-
 src/systemd/sd-login.h| 2 +-
 src/test/test-strbuf.c| 2 +-
 src/udev/udev-builtin-net_id.c| 2 +-
 25 files changed, 36 insertions(+), 32 deletions(-)

-- 
2.2.0

___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


[systemd-devel] [PATCH 1/6] networkd/resolved: correct spacing near eol in code comments

2014-12-10 Thread Torstein Husebø
---
 src/network/networkd-address.c   | 2 +-
 src/network/networkd-netdev.c| 2 +-
 src/resolve/resolved-dns-scope.c | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/network/networkd-address.c b/src/network/networkd-address.c
index a85e8fa21e..a32e87040a 100644
--- a/src/network/networkd-address.c
+++ b/src/network/networkd-address.c
@@ -227,7 +227,7 @@ static int address_acquire(Link *link, Address *original, 
Address **ret) {
 }
 
 if (original->family == AF_INET) {
-/* Pick first address in range for ourselves ...*/
+/* Pick first address in range for ourselves ... */
 in_addr.in.s_addr = in_addr.in.s_addr | htobe32(1);
 
 /* .. and use last as broadcast address */
diff --git a/src/network/networkd-netdev.c b/src/network/networkd-netdev.c
index b75eab9cd8..974547dcda 100644
--- a/src/network/networkd-netdev.c
+++ b/src/network/networkd-netdev.c
@@ -275,7 +275,7 @@ int netdev_enslave(NetDev *netdev, Link *link, 
sd_rtnl_message_handler_t callbac
 if (r < 0)
 return r;
 } else {
-/* the netdev is not yet read, save this request for when it 
is*/
+/* the netdev is not yet read, save this request for when it 
is */
 netdev_join_callback *cb;
 
 cb = new0(netdev_join_callback, 1);
diff --git a/src/resolve/resolved-dns-scope.c b/src/resolve/resolved-dns-scope.c
index a43359f8c5..abdb2e0732 100644
--- a/src/resolve/resolved-dns-scope.c
+++ b/src/resolve/resolved-dns-scope.c
@@ -529,7 +529,7 @@ void dns_scope_process_query(DnsScope *s, DnsStream 
*stream, DnsPacket *p) {
 if (p->ipproto == IPPROTO_UDP) {
 /* Don't accept UDP queries directed to anything but
  * the LLMNR multicast addresses. See RFC 4795,
- * section 2.5.*/
+ * section 2.5. */
 
 if (p->family == AF_INET && !in_addr_equal(AF_INET, 
&p->destination, (union in_addr_union*) &LLMNR_MULTICAST_IPV4_ADDRESS))
 return;
-- 
2.2.0

___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


[systemd-devel] [PATCH] hwdb: fix typo

2014-12-10 Thread Torstein Husebø
---
 hwdb/70-mouse.hwdb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hwdb/70-mouse.hwdb b/hwdb/70-mouse.hwdb
index 4d38c7b633..0a18ec194e 100644
--- a/hwdb/70-mouse.hwdb
+++ b/hwdb/70-mouse.hwdb
@@ -40,7 +40,7 @@
 #   or, if the frequency is known:
 #   MOUSE_DPI=800@120
 # - a space-separated list of resolutions for multi-resolution mice.
-#   The default resolution must be prefixed by an asterisk, the resultions
+#   The default resolution must be prefixed by an asterisk, the resolutions
 #   in the database must be as shipped by the manufacturer. e.g.
 #   MOUSE_DPI=400 *800 2000
 #
-- 
2.2.0

___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


[systemd-devel] [PATCH V2] networkd: fix typo

2014-12-03 Thread Torstein Husebø
V2: found another one
---
 src/network/networkctl.c  | 4 ++--
 src/network/networkd-netdev.c | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/network/networkctl.c b/src/network/networkctl.c
index 622533053c..a763630061 100644
--- a/src/network/networkctl.c
+++ b/src/network/networkctl.c
@@ -333,7 +333,7 @@ static int get_gateway_description(sd_rtnl *rtnl, struct 
udev_hwdb *hwdb, int if
 
 r = sd_rtnl_message_neigh_get_ifindex(m, &ifi);
 if (r < 0) {
-log_error_errno(r, "colud not get ifindex: %m");
+log_error_errno(r, "could not get ifindex: %m");
 continue;
 }
 
@@ -427,7 +427,7 @@ static int dump_gateways(sd_rtnl *rtnl, struct udev_hwdb 
*hwdb, const char *pref
 
 r = sd_rtnl_message_read_u32(m, RTA_OIF, &ifi);
 if (r < 0) {
-log_error_errno(r, "colud not get RTA_OIF: %m");
+log_error_errno(r, "could not get RTA_OIF: %m");
 continue;
 }
 
diff --git a/src/network/networkd-netdev.c b/src/network/networkd-netdev.c
index a08236e7c3..b75eab9cd8 100644
--- a/src/network/networkd-netdev.c
+++ b/src/network/networkd-netdev.c
@@ -503,7 +503,7 @@ static int netdev_create(NetDev *netdev, Link *link,
 r = sd_rtnl_message_append_u32(m, IFLA_LINK, 
link->ifindex);
 if (r < 0) {
 log_netdev_error(netdev,
- "Colud not append IFLA_LINK 
attribute: %s",
+ "Could not append IFLA_LINK 
attribute: %s",
  strerror(-r));
 return r;
 }
-- 
2.2.0

___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


[systemd-devel] [PATCH] networkctl: fix typo

2014-12-03 Thread Torstein Husebø
---
 src/network/networkctl.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/network/networkctl.c b/src/network/networkctl.c
index 622533053c..a763630061 100644
--- a/src/network/networkctl.c
+++ b/src/network/networkctl.c
@@ -333,7 +333,7 @@ static int get_gateway_description(sd_rtnl *rtnl, struct 
udev_hwdb *hwdb, int if
 
 r = sd_rtnl_message_neigh_get_ifindex(m, &ifi);
 if (r < 0) {
-log_error_errno(r, "colud not get ifindex: %m");
+log_error_errno(r, "could not get ifindex: %m");
 continue;
 }
 
@@ -427,7 +427,7 @@ static int dump_gateways(sd_rtnl *rtnl, struct udev_hwdb 
*hwdb, const char *pref
 
 r = sd_rtnl_message_read_u32(m, RTA_OIF, &ifi);
 if (r < 0) {
-log_error_errno(r, "colud not get RTA_OIF: %m");
+log_error_errno(r, "could not get RTA_OIF: %m");
 continue;
 }
 
-- 
2.2.0

___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


[systemd-devel] [PATCH] Fix a couple of typos

2014-10-22 Thread Torstein Husebø
---
 src/systemd/sd-network.h | 9 +
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/systemd/sd-network.h b/src/systemd/sd-network.h
index 203a2a6a47..bb69940930 100644
--- a/src/systemd/sd-network.h
+++ b/src/systemd/sd-network.h
@@ -61,7 +61,7 @@ int sd_network_get_operational_state(char **state);
 int sd_network_get_dns(char ***dns);
 
 /* Get NTP entries for all links. These are domain names or string
- * reperesentations of IP addresses */
+ * representations of IP addresses */
 int sd_network_get_ntp(char ***ntp);
 
 /* Get the search/routing domains for all links. */
@@ -80,7 +80,7 @@ int sd_network_get_domains(char ***domains);
  */
 int sd_network_link_get_setup_state(int ifindex, char **state);
 
-/* Get operatinal state from ifindex.
+/* Get operational state from ifindex.
  * Possible states:
  *   off: the device is powered down
  *   no-carrier: the device is powered up, but it does not yet have a carrier
@@ -101,13 +101,14 @@ int sd_network_link_get_network_file(int ifindex, char 
**filename);
 int sd_network_link_get_dns(int ifindex, char ***addr);
 
 /* Get NTP entries for a given link. These are domain names or string
- * reperesentations of IP addresses */
+ * representations of IP addresses */
 int sd_network_link_get_ntp(int ifindex, char ***addr);
 
 /* Indicates whether or not LLMNR should be enabled for the link
  * Possible levels of support: yes, no, resolve
  * Possible return codes:
- *   -ENODATA: networkd is not aware of the link*/
+ *   -ENODATA: networkd is not aware of the link
+ */
 int sd_network_link_get_llmnr(int ifindex, char **llmnr);
 
 /* Get the DNS domain names for a given link. */
-- 
2.1.1

___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


[systemd-devel] [PATCH] Correct a few typos

2014-09-30 Thread Torstein Husebø
---
 man/systemd-debug-generator.xml | 2 +-
 src/tty-ask-password-agent/tty-ask-password-agent.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/man/systemd-debug-generator.xml b/man/systemd-debug-generator.xml
index ce4750e530..a2bef5fe28 100644
--- a/man/systemd-debug-generator.xml
+++ b/man/systemd-debug-generator.xml
@@ -68,7 +68,7 @@
 If the systemd.wants= option is
 specified and followed by a unit name, a start job for
 this unit is added to the initial transaction. This is
-useful to start one ore more additional units at
+useful to start one or more additional units at
 boot. May be specified more than once.
 
 If the systemd.debug-shell
diff --git a/src/tty-ask-password-agent/tty-ask-password-agent.c 
b/src/tty-ask-password-agent/tty-ask-password-agent.c
index 8a02fb0b5e..e7cbde285c 100644
--- a/src/tty-ask-password-agent/tty-ask-password-agent.c
+++ b/src/tty-ask-password-agent/tty-ask-password-agent.c
@@ -183,7 +183,7 @@ static int ask_password_plymouth(
 uint32_t size;
 char **l;
 
-/* One ore more answers */
+/* One or more answers */
 if (p < 5)
 continue;
 
-- 
2.1.1

___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel