r7902: Fix the build
authorVolker Lendecke <vlendec@samba.org>
Sat, 25 Jun 2005 09:07:42 +0000 (09:07 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:58:02 +0000 (10:58 -0500)
source/modules/vfs_catia.c
source/torture/cmd_vfs.c
source/torture/nbio.c
source/torture/torture.c
source/ubiqx/debugparse.c
source/utils/debug2html.c

index 04d87c421f11a1e24b322032f34dfc44d9523631..d4420884dddd83f06b5102234b6f1d3b91e5127b 100644 (file)
@@ -105,13 +105,13 @@ static int catia_open(vfs_handle_struct *handle, connection_struct *conn,
 }
 
 static int catia_rename(vfs_handle_struct *handle, connection_struct *conn,
-                       const char *old, const char *new)
+                       const char *oldname, const char *newname)
 {
         pstring oname, nname;
 
-        pstrcpy(oname, old);
+        pstrcpy(oname, oldname);
         to_unix(oname);
-        pstrcpy(nname, new);
+        pstrcpy(nname, newname);
         to_unix(nname);
 
         DEBUG(10, ("converted old name: %s\n", oname));
index 132e0776aba8d5478d37c2339460f87aecc7234e..2c977485449748503c8ad2e42a0962c21b280157 100644 (file)
@@ -129,7 +129,7 @@ static NTSTATUS cmd_opendir(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc
                return NT_STATUS_OK;
        }
 
-       vfs->currentdir = SMB_VFS_OPENDIR(vfs->conn, argv[1]);
+       vfs->currentdir = SMB_VFS_OPENDIR(vfs->conn, argv[1], NULL, 0);
        if (vfs->currentdir == NULL) {
                printf("opendir error=%d (%s)\n", errno, strerror(errno));
                return NT_STATUS_UNSUCCESSFUL;
@@ -142,7 +142,7 @@ static NTSTATUS cmd_opendir(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc
 
 static NTSTATUS cmd_readdir(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, const char **argv)
 {
-       struct dirent *dent;
+       SMB_STRUCT_DIRENT *dent;
 
        if (vfs->currentdir == NULL) {
                printf("readdir: error=-1 (no open directory)\n");
index 16e0b4a191a77819bdeece512df95ee26a01a1a6..e00fce02dbc3ec062bafaea07a00a98dc9fdd358 100644 (file)
@@ -232,7 +232,7 @@ void nb_rename(const char *oldname, const char *newname)
 {
        if (!cli_rename(c, oldname, newname)) {
                printf("ERROR: rename %s %s failed (%s)\n", 
-                      old, new, cli_errstr(c));
+                      oldname, newname, cli_errstr(c));
                exit(1);
        }
 }
index ef9497d9ad9e16cccee7091f8d60509a17053761..f59da14b795a4e200b00453736a03a0247e96ef9 100644 (file)
@@ -210,16 +210,16 @@ static BOOL check_error(int line, struct cli_state *c,
                        uint8 eclass, uint32 ecode, NTSTATUS nterr)
 {
         if (cli_is_dos_error(c)) {
-                uint8 class;
+                uint8 cclass;
                 uint32 num;
 
                 /* Check DOS error */
 
-                cli_dos_error(c, &class, &num);
+                cli_dos_error(c, &cclass, &num);
 
-                if (eclass != class || ecode != num) {
+                if (eclass != cclass || ecode != num) {
                         printf("unexpected error code class=%d code=%d\n", 
-                               (int)class, (int)num);
+                               (int)cclass, (int)num);
                         printf(" expected %d/%d %s (line=%d)\n", 
                                (int)eclass, (int)ecode, nt_errstr(nterr), line);
                         return False;
@@ -2114,7 +2114,7 @@ test how many open files this server supports on the one socket
 static BOOL run_maxfidtest(int dummy)
 {
        struct cli_state *cli;
-       const char *template = "\\maxfid.%d.%d";
+       const char *ftemplate = "\\maxfid.%d.%d";
        fstring fname;
        int fnums[0x11000], i;
        int retries=4;
@@ -2130,7 +2130,7 @@ static BOOL run_maxfidtest(int dummy)
        cli_sockopt(cli, sockops);
 
        for (i=0; i<0x11000; i++) {
-               slprintf(fname,sizeof(fname)-1,template, i,(int)getpid());
+               slprintf(fname,sizeof(fname)-1,ftemplate, i,(int)getpid());
                if ((fnums[i] = cli_open(cli, fname, 
                                        O_RDWR|O_CREAT|O_TRUNC, DENY_NONE)) ==
                    -1) {
@@ -2146,7 +2146,7 @@ static BOOL run_maxfidtest(int dummy)
 
        printf("cleaning up\n");
        for (;i>=0;i--) {
-               slprintf(fname,sizeof(fname)-1,template, i,(int)getpid());
+               slprintf(fname,sizeof(fname)-1,ftemplate, i,(int)getpid());
                cli_close(cli, fnums[i]);
                if (!cli_unlink(cli, fname)) {
                        printf("unlink of %s failed (%s)\n", 
index 195fc245bc01ff59ca53e0eb2b7eb93744d1a9e4..c5fe3e2ee85f20a684dfa974fdc966049691e904 100644 (file)
@@ -262,16 +262,16 @@ void dbg_test( void )
   int  i;
   int  linecount  = 1;
   dbg_Token old   = dbg_null,
-            new   = dbg_null,
+            newtok= dbg_null,
             state = dbg_null;
 
   while( fgets( bufr, DBG_BSIZE, stdin ) )
     {
     for( i = 0; bufr[i]; i++ )
       {
-      old = new;
-      new = dbg_char2token( &state, bufr[i] );
-      switch( new )
+      old = newtok;
+      newtok = dbg_char2token( &state, bufr[i] );
+      switch( newtok )
         {
         case dbg_header:
           if( linecount > 1 )
@@ -283,8 +283,8 @@ void dbg_test( void )
         case dbg_ignore:
           break;
         default:
-          if( old != new )
-            (void)printf( "\n[%05d]%12s: ", linecount, dbg_token2string(new) );
+          if( old != newtok )
+            (void)printf( "\n[%05d]%12s: ", linecount, dbg_token2string(newtok) );
           (void)putchar( bufr[i] );
         }
       }
index f9a1f43f461c3a788072e54200091c1cea5296fc..bec4d81ae2bfa6194c392c7a661876b7515cb16f 100644 (file)
@@ -69,7 +69,7 @@
  * Functions...
  */
 
-static dbg_Token modechange( dbg_Token new, dbg_Token mode )
+static dbg_Token modechange( dbg_Token newmode, dbg_Token mode )
   /* ------------------------------------------------------------------------ **
    * Handle a switch between header and message printing.
    *
@@ -89,7 +89,7 @@ static dbg_Token modechange( dbg_Token new, dbg_Token mode )
    * ------------------------------------------------------------------------ **
    */
   {
-  switch( new )
+  switch( newmode )
     {
     case dbg_null:
     case dbg_ignore:
@@ -114,7 +114,7 @@ static dbg_Token modechange( dbg_Token new, dbg_Token mode )
   return( mode );
   } /* modechange */
 
-static void newblock( dbg_Token old, dbg_Token new )
+static void newblock( dbg_Token old, dbg_Token newtok )
   /* ------------------------------------------------------------------------ **
    * Handle the transition between tokens.
    *
@@ -147,7 +147,7 @@ static void newblock( dbg_Token old, dbg_Token new )
       break;
     }
 
-  switch( new )
+  switch( newtok )
     {
     case dbg_timestamp:
       (void)printf( "<B>[" );
@@ -223,7 +223,7 @@ int main( int argc, char *argv[] )
   int       len;
   char      bufr[DBG_BSIZE];
   dbg_Token old   = dbg_null,
-            new   = dbg_null,
+            newtok = dbg_null,
             state = dbg_null,
             mode  = dbg_null;
 
@@ -236,14 +236,14 @@ int main( int argc, char *argv[] )
     {
     for( i = 0; i < len; i++ )
       {
-      old = new;
-      new = dbg_char2token( &state, bufr[i] );
-      if( new != old )
+      old = newtok;
+      newtok = dbg_char2token( &state, bufr[i] );
+      if( newtok != old )
         {
-        mode = modechange( new, mode );
-        newblock( old, new );
+        mode = modechange( newtok, mode );
+        newblock( old, newtok );
         }
-      charprint( new, bufr[i] );
+      charprint( newtok, bufr[i] );
       }
     }
   (void)modechange( dbg_eof, mode );