[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 @@
   varlistentry
 termvarnameServerKeyFile=/varname/term
 
-listitemparaSSL key in PEM format/para/listitem
+listitemparaSSL key in PEM format./para/listitem
   /varlistentry
 
   varlistentry
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
+++ 

[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./para
 
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 filename/etc/filename file system and is
 fragile because the file might be edited by the administrator at
 the same time. With commandnss-myhostname/command enabled
-changing filename/etc/hosts/filename is unncessary, and on
+changing filename/etc/hosts/filename is unnecessary, and on
 many systems the file becomes entirely optional./para
 
 paraTo activate the NSS modules, literalmyhostname/literal
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 @@
 
 paraAll functions that take a parameterchar***/parameter
 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
 parameterc/parameter remains valid, and should not be freed or
 modified by the caller./para
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 functionsd_bus_default()/function,
 functionsd_bus_default_user()/function,
 functionsd_bus_default_system()/function to connect to the
-user or system busses./para
+user or system buses./para
 
 paraIf the varname$DBUS_SESSION_BUS_ADDRESS/varname 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./para
 
-paraA variant is denoted by literalv/literal. Correspoding
+paraA variant is denoted by literalv/literal. Corresponding
 arguments must include a format string denoting a complete type,
 and following that, arguments corresponding to the specified type.
 /para
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
 

[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 @@
   row
   entryliteral%H/literal/entry
   entryHost name/entry
-  entryThe hostname of the running system at the point in time the unit 
configuation is loaded./entry
+  entryThe hostname of the running system at the point in time the unit 
configuration is loaded./entry
   /row
   row
   entryliteral%v/literal/entry
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 @@
   listitem
 paraDHCP client identifier to use. Either literalmac/literal
 to use the MAC address of the link or literalduid/literal
-(the default) to use a RFC4361-complient Client ID./para
+(the default) to use a RFC4361-compliant Client ID./para
   /listitem
 /varlistentry
 varlistentry
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 @@
 filename/etc/filename./para
 
 paraAfter installing new generators or updating the
-configuration, commandsystemctl daemon-reloead/command may be
+configuration, commandsystemctl daemon-reload/command may be
 executed. This will delete the previous configuration created by
 generators, re-run all generators, and cause
 commandsystemd/command 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./para
   /listitem
 /varlistentry
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/programlisting
 
   paraNow one wants to change some settings as an administrator:
   firstly, in the local setup, filename/srv/webserver/filename
-  might not exit, because the HTTP server is configured to use
+  might not exist, because the HTTP server is configured to use
   filename/srv/www/filename instead. Secondly, the local
   configuration makes the HTTP server also depend on a memory
   cache service, filenamememcached.service/filename, 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
@@ 

[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 literals/literal,
 literalmin/literal,
 literalh/literal,
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 
http://www.gnu.org/licenses/.
 
   refnamediv
 refnamenetworkctl/refname
-refpurposeQuery the statuc of network links/refpurpose
+refpurposeQuery the status of network links/refpurpose
   /refnamediv
 
   refsynopsisdiv
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 
http://www.gnu.org/licenses/.
 termconstant-EINVAL/constant/term
 
 listitemparaAn invalid argument has been passed. This includes
-specyfing an empty mask in parameteroptions/parameter or a mask
+specifying an empty mask in parameteroptions/parameter or a mask
 which contains values different than a combination of
 constantWEXITED/constant, constantWSTOPPED/constant, and
 constantWCONTINUED/constant.
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
 
citerefentryrefentrytitlesystemd.service/refentrytitlemanvolnum5/manvolnum/citerefentry
 for details. Multiple arrays of file
-

[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] 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 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 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 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] 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 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] 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 @@
 paraIf the optionsystemd.wants=/option 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./para
 
 paraIf the optionsystemd.debug-shell/option
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