]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - sim/rx/syscalls.c
sim/rx: move some variable declarations to the start of the block
[thirdparty/binutils-gdb.git] / sim / rx / syscalls.c
index 2f89da173307a827650534bc025262d615b1cd49..22778b3df490753119569aed7269de0f5d918745 100644 (file)
@@ -160,6 +160,7 @@ rx_syscall (int id)
 
     case SYS_open:
       {
+       int oflags, cflags;
        int path = arg ();
        /* The open function is defined as taking a variable number of arguments
           because the third parameter to it is optional:
@@ -167,8 +168,8 @@ rx_syscall (int id)
           Hence the oflags and cflags arguments will be on the stack and we need
           to skip the (empty) argument registers r3 and r4.  */
        argp = 4;
-       int oflags = arg ();
-       int cflags = arg ();
+       oflags = arg ();
+       cflags = arg ();
 
        read_target (buf, path, 256, 1);
        if (trace)