chiark / gitweb /
time-util: also rename FORMAT_TIMESTAMP_PRETTY → _MAX
authorLennart Poettering <lennart@poettering.net>
Fri, 23 Nov 2012 21:51:55 +0000 (22:51 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 23 Nov 2012 21:51:55 +0000 (22:51 +0100)
src/login/loginctl.c
src/shared/time-util.h
src/systemctl/systemctl.c

index 820fcc0..cfbc5fe 100644 (file)
@@ -323,7 +323,7 @@ typedef struct SeatStatusInfo {
 } SeatStatusInfo;
 
 static void print_session_status_info(SessionStatusInfo *i) {
-        char since1[FORMAT_TIMESTAMP_PRETTY_MAX], *s1;
+        char since1[FORMAT_TIMESTAMP_RELATIVE_MAX], *s1;
         char since2[FORMAT_TIMESTAMP_MAX], *s2;
         assert(i);
 
@@ -418,7 +418,7 @@ static void print_session_status_info(SessionStatusInfo *i) {
 }
 
 static void print_user_status_info(UserStatusInfo *i) {
-        char since1[FORMAT_TIMESTAMP_PRETTY_MAX], *s1;
+        char since1[FORMAT_TIMESTAMP_RELATIVE_MAX], *s1;
         char since2[FORMAT_TIMESTAMP_MAX], *s2;
         assert(i);
 
index 1f6952c..4017b57 100644 (file)
@@ -54,7 +54,7 @@ typedef struct dual_timestamp {
 #define NSEC_PER_YEAR (31557600ULL*NSEC_PER_SEC)
 
 #define FORMAT_TIMESTAMP_MAX (6+11+9+4+1)
-#define FORMAT_TIMESTAMP_PRETTY_MAX 256
+#define FORMAT_TIMESTAMP_RELATIVE_MAX 256
 #define FORMAT_TIMESPAN_MAX 64
 
 usec_t now(clockid_t clock);
index ba4f171..7a19d06 100644 (file)
@@ -2056,7 +2056,7 @@ static void print_status_info(UnitStatusInfo *i) {
         ExecStatusInfo *p;
         const char *on, *off, *ss;
         usec_t timestamp;
-        char since1[FORMAT_TIMESTAMP_PRETTY_MAX], *s1;
+        char since1[FORMAT_TIMESTAMP_RELATIVE_MAX], *s1;
         char since2[FORMAT_TIMESTAMP_MAX], *s2;
         const char *path;