diff options
author | Andrew Tridgell <tridge@samba.org> | 1996-06-10 04:38:24 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1996-06-10 04:38:24 +0000 |
commit | 7e3b4a1c0df1434eb3d02f93c736ce065f9898d8 (patch) | |
tree | 025b06cd0fe6aa7e228532c53318fc7fb8c0a9e0 /source3/smbd/quotas.c | |
parent | b7ca915de8e8b6d9592ff52699ff271d99eaebc0 (diff) | |
download | samba-7e3b4a1c0df1434eb3d02f93c736ce065f9898d8.tar.gz samba-7e3b4a1c0df1434eb3d02f93c736ce065f9898d8.tar.bz2 samba-7e3b4a1c0df1434eb3d02f93c736ce065f9898d8.zip |
got rid of a lot of redundent header files as we now globally generate
prototypes automatically using "make proto". This is much less prone
to error than the old method of manually adding prototypes
(This used to be commit b551dc98f7cc194a5fc2e67a4ebae7fd67a01bbc)
Diffstat (limited to 'source3/smbd/quotas.c')
-rw-r--r-- | source3/smbd/quotas.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/source3/smbd/quotas.c b/source3/smbd/quotas.c index 4216aa1199..6ba20faa6c 100644 --- a/source3/smbd/quotas.c +++ b/source3/smbd/quotas.c @@ -273,7 +273,7 @@ BOOL disk_quotas(char *path, int *bsize, int *dfree, int *dsize) return(False) ; devno = sbuf.st_dev ; -DEBUG(5,("disk_quotas: looking for path \"%s\" devno=%o\n", path,devno)); + DEBUG(5,("disk_quotas: looking for path \"%s\" devno=%o\n", path,devno)); if ( devno != devno_cached ) { devno_cached = devno ; #if defined(SUNOS5) @@ -284,7 +284,8 @@ DEBUG(5,("disk_quotas: looking for path \"%s\" devno=%o\n", path,devno)); while (getmntent(fd, &mnt) == 0) { if ( stat(mnt.mnt_mountp,&sbuf) == -1 ) continue ; -DEBUG(5,("disk_quotas: testing \"%s\" devno=%o\n", mnt.mnt_mountp,sbuf.st_dev)); + DEBUG(5,("disk_quotas: testing \"%s\" devno=%o\n", + mnt.mnt_mountp,sbuf.st_dev)); if (sbuf.st_dev == devno) { found = True ; break ; @@ -302,7 +303,8 @@ DEBUG(5,("disk_quotas: testing \"%s\" devno=%o\n", mnt.mnt_mountp,sbuf.st_dev)); while ((mnt = getmntent(fd)) != NULL) { if ( stat(mnt->mnt_dir,&sbuf) == -1 ) continue ; -DEBUG(5,("disk_quotas: testing \"%s\" devno=%o\n", mnt->mnt_dir,sbuf.st_dev)); + DEBUG(5,("disk_quotas: testing \"%s\" devno=%o\n", + mnt->mnt_dir,sbuf.st_dev)); if (sbuf.st_dev == devno) { found = True ; break ; @@ -324,7 +326,7 @@ DEBUG(5,("disk_quotas: testing \"%s\" devno=%o\n", mnt->mnt_dir,sbuf.st_dev)); seteuid(0); #if defined(SUNOS5) -DEBUG(5,("disk_quotas: looking for quotas file \"%s\"\n", name)); + DEBUG(5,("disk_quotas: looking for quotas file \"%s\"\n", name)); if((file=open(name, O_RDONLY))<0) { setuid(user_id); /* Restore the original UID status */ seteuid(euser_id); @@ -336,7 +338,7 @@ DEBUG(5,("disk_quotas: looking for quotas file \"%s\"\n", name)); ret = ioctl(file, Q_QUOTACTL, &command); close(file); #else -DEBUG(5,("disk_quotas: trying quotactl on device \"%s\"\n", name)); + DEBUG(5,("disk_quotas: trying quotactl on device \"%s\"\n", name)); ret = quotactl(Q_GETQUOTA, name, euser_id, &D); #endif |