summaryrefslogtreecommitdiff
path: root/src/rc/checkpath.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-01-30 15:01:37 +0000
committerRoy Marples <roy@marples.name>2008-01-30 15:01:37 +0000
commit84ad9a40a647b97551bc8bc35f082bd82e8b8c92 (patch)
treed73157f3e3c34ad3d55cb664cf726980a6a5ab12 /src/rc/checkpath.c
parent3506cb2dc737bbe5bdeaf0bcd9d239db98be1819 (diff)
downloadopenrc-84ad9a40a647b97551bc8bc35f082bd82e8b8c92.tar.gz
openrc-84ad9a40a647b97551bc8bc35f082bd82e8b8c92.tar.bz2
openrc-84ad9a40a647b97551bc8bc35f082bd82e8b8c92.tar.xz
Use the variable instead of type for sizeof.
Diffstat (limited to 'src/rc/checkpath.c')
-rw-r--r--src/rc/checkpath.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rc/checkpath.c b/src/rc/checkpath.c
index 4b57e18..74bed53 100644
--- a/src/rc/checkpath.c
+++ b/src/rc/checkpath.c
@@ -52,7 +52,7 @@ static int do_check (char *path, uid_t uid, gid_t gid, mode_t mode, int file)
{
struct stat st;
- memset (&st, 0, sizeof (struct stat));
+ memset (&st, 0, sizeof (st));
if (stat (path, &st)) {
if (file) {