chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bus-proxyd: explicitly address messages to unique and well-known name
[elogind.git]
/
src
/
bootchart
/
svg.c
diff --git
a/src/bootchart/svg.c
b/src/bootchart/svg.c
index 135883fb838c813a932ff7fe5cf96fdbfd48f2f3..faf377e506e942f729a2b174c72c709bb9923710 100644
(file)
--- a/
src/bootchart/svg.c
+++ b/
src/bootchart/svg.c
@@
-162,7
+162,7
@@
static void svg_title(const char *build) {
char *c;
FILE *f;
time_t t;
char *c;
FILE *f;
time_t t;
- int fd;
+ int fd
, r
;
struct utsname uts;
/* grab /proc/cmdline */
struct utsname uts;
/* grab /proc/cmdline */
@@
-196,7
+196,8
@@
static void svg_title(const char *build) {
/* date */
t = time(NULL);
/* date */
t = time(NULL);
- strftime(date, sizeof(date), "%a, %d %b %Y %H:%M:%S %z", localtime(&t));
+ r = strftime(date, sizeof(date), "%a, %d %b %Y %H:%M:%S %z", localtime(&t));
+ assert_se(r > 0);
/* CPU type */
fd = openat(procfd, "cpuinfo", O_RDONLY);
/* CPU type */
fd = openat(procfd, "cpuinfo", O_RDONLY);