+2005-06-25 Erez Zadok <ezk@garak.fsl.cs.sunysb.edu>
+
+ * conf/mtab/mtab_linux.c (rewrite_mtab): variable declarations
+ must come before C code.
+
2005-06-25 Erez Zadok <ezk@cs.sunysb.edu>
* conf/mtab/mtab_linux.c: Linux-specific mount table hanlding
*
* %W% (Berkeley) %G%
*
- * $Id: mtab_linux.c,v 1.1 2005/06/25 18:15:33 ezk Exp $
+ * $Id: mtab_linux.c,v 1.2 2005/06/25 19:03:05 ezk Exp $
*
*/
{
FILE *mfp;
int error = 0;
+ char tmpname[64];
+ int retries;
+ int tmpfd;
+ char *cp;
+ char mcp[128];
if (!mtab_is_writable()) {
return;
* Concoct a temporary name in the same directory as the target mount
* table so that rename() will work.
*/
- char tmpname[64];
- int retries;
- int tmpfd;
- char *cp;
- char mcp[128];
-
strcpy(mcp, mnttabname);
cp = strrchr(mcp, '/');
if (cp) {