X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fshared%2Futil.c;h=b90e10ffb2f05726f0e1dd80cead5de5fd3f9ab0;hb=0c900704e7e9ad6732baf0e61b6817d76fc01fed;hp=a13819e79ac8acb5e21d71a9474412cee2b222a8;hpb=6c767d1e1a1815fbd4d2b196fb92a0d85cfde5b2;p=elogind.git diff --git a/src/shared/util.c b/src/shared/util.c index a13819e79..b90e10ffb 100644 --- a/src/shared/util.c +++ b/src/shared/util.c @@ -2592,7 +2592,7 @@ char* dirname_malloc(const char *path) { int dev_urandom(void *p, size_t n) { static int have_syscall = -1; - _cleanup_close_ fd = -1; + _cleanup_close_ int fd = -1; int r; /* Gathers some randomness from the kernel. This call will