summaryrefslogtreecommitdiff
path: root/mount/mount_mntent.c
AgeCommit message (Collapse)AuthorFilesLines
2011-01-03libmount: cleanup mangle() usageKarel Zak1-7/+0
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-01-03libmount: use better format for utab, improve bind mountsKarel Zak1-8/+4
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-03-11mount: use unmangle/mangle() from libKarel Zak1-53/+2
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-08-17replace bcopy,bzero,index and rindexDaniel Mierswa1-2/+2
Those 4 functions are marked as LEGACY in POSIX.1-2001 and removed in POSIX.1-2008. Replaced with memmove,memset,strchr and strrchr. Signed-off-by: Daniel Mierswa <impulze@impulze.org>
2008-03-12remove useless if-before-free tests.Jim Meyering1-2/+1
E.g., in this example, the "if (p)" test is useless. if (p) free (p); I've been removing such tests systematically. Here's where I proposed it to the git folks, along with justification for why it's ok to perform this transformation, these days (no one uses SunOS4 anymore): http://thread.gmane.org/gmane.comp.version-control.git/74187 Signed-off-by: Jim Meyering <meyering@redhat.com>
2007-10-11mount: clean up gcc warnings (mount_mntent.c)Randy Dunlap1-1/+1
Fix gcc warnings from: (try compilation with "-Wall -Wp,-D_FORTIFY_SOURCE=2") mount_mntent.c:28: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness mount_mntent.c:129: warning: pointer targets in passing argument 1 of 'mangle' differ in signedness mount_mntent.c:130: warning: pointer targets in passing argument 1 of 'mangle' differ in signedness mount_mntent.c:131: warning: pointer targets in passing argument 1 of 'mangle' differ in signedness mount_mntent.c:132: warning: pointer targets in passing argument 1 of 'mangle' differ in signedness Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
2007-01-04build-sys: remove DEFAULT_INCLUDES workaroundKarel Zak1-0/+222
The automake stuff uses "-I.". as a default gcc option for includes. This is a problem for source code where is local includes with a same name like system includes (e.g. mntent.h, paths.h). Possible workaround is overwrite the automake DEFAULT_INCLUDES variable. But this solution produces warnings. The best way (this patch) is probably rename the files and remove DEFAULT_INCLUDES. Signed-off-by: Karel Zak <kzak@redhat.com>