chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fsck: no need for a temporary variable
[elogind.git]
/
src
/
fsckd
/
fsckd.c
diff --git
a/src/fsckd/fsckd.c
b/src/fsckd/fsckd.c
index 4a61d80a18e3980d41ce30c8bb058e5d615fc41e..ae56fe60fd314ff0b6e134feb3469383569a8ad2 100644
(file)
--- a/
src/fsckd/fsckd.c
+++ b/
src/fsckd/fsckd.c
@@
-160,7
+160,7
@@
static int plymouth_feedback_handler(sd_event_source *s, int fd, uint32_t revent
static int send_message_plymouth_socket(int plymouth_fd, const char *message, bool update) {
_cleanup_free_ char *packet = NULL;
static int send_message_plymouth_socket(int plymouth_fd, const char *message, bool update) {
_cleanup_free_ char *packet = NULL;
- int
r,
n;
+ int n;
char mode = 'M';
if (update)
char mode = 'M';
if (update)
@@
-168,10
+168,9
@@
static int send_message_plymouth_socket(int plymouth_fd, const char *message, bo
if (asprintf(&packet, "%c\002%c%s%n", mode, (int) (strlen(message) + 1), message, &n) < 0)
return log_oom();
if (asprintf(&packet, "%c\002%c%s%n", mode, (int) (strlen(message) + 1), message, &n) < 0)
return log_oom();
- r = loop_write(plymouth_fd, packet, n + 1, true);
- return r;
-}
+ return loop_write(plymouth_fd, packet, n + 1, true);
+}
static int send_message_plymouth(Manager *m, const char *message) {
int r;
static int send_message_plymouth(Manager *m, const char *message) {
int r;