From e1a1f902047eb24a01c21ef451ac709cc01179d3 Mon Sep 17 00:00:00 2001 From: Werner Fink Date: Thu, 21 Oct 2010 09:47:16 +0000 Subject: [PATCH] Correct position of string pointer in NFS struct used in killall5/pidof --- src/killall5.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/killall5.c b/src/killall5.c index d585623..7d753bd 100644 --- a/src/killall5.c +++ b/src/killall5.c @@ -121,8 +121,8 @@ typedef struct _s_nfs struct _s_nfs *next; /* Pointer to next struct. */ struct _s_nfs *prev; /* Pointer to previous st. */ SHADOW *shadow; /* Pointer to shadows */ - char * name; size_t nlen; + char * name; } NFS; /* List of processes. */ @@ -355,7 +355,7 @@ static void clear_mnt(void) } /* - * Check if path is ia shadow off a NFS partition. + * Check if path is a shadow off a NFS partition. */ static int shadow(SHADOW *restrict this, const char *restrict name, const size_t nlen) {