summaryrefslogtreecommitdiff
path: root/src/socket.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-06-19 04:35:52 +0200
committerLennart Poettering <lennart@poettering.net>2010-06-19 04:35:52 +0200
commitbb00e604097fba830af1dc078d78aff278dfcd37 (patch)
tree01cda212012b5159e073eede2d27a93cafa0f647 /src/socket.c
parent6cf6bbc2682c6df010d64ea7e49d93affa7282cd (diff)
don't use 'long long' unless we have a really good reason to
Diffstat (limited to 'src/socket.c')
-rw-r--r--src/socket.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/socket.c b/src/socket.c
index fdb6f66b6f..751d8aa8fa 100644
--- a/src/socket.c
+++ b/src/socket.c
@@ -313,8 +313,8 @@ static void socket_dump(Unit *u, FILE *f, const char *prefix) {
if (s->control_pid > 0)
fprintf(f,
- "%sControl PID: %llu\n",
- prefix, (unsigned long long) s->control_pid);
+ "%sControl PID: %lu\n",
+ prefix, (unsigned long) s->control_pid);
if (s->bind_to_device)
fprintf(f,
@@ -447,10 +447,10 @@ static int instance_from_socket(int fd, unsigned nr, char **instance) {
return -errno;
if (asprintf(&r,
- "%u-%llu-%llu",
+ "%u-%lu-%lu",
nr,
- (unsigned long long) ucred.pid,
- (unsigned long long) ucred.uid) < 0)
+ (unsigned long) ucred.pid,
+ (unsigned long) ucred.uid) < 0)
return -ENOMEM;
break;