IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 11081


Ignore:
Timestamp:
Jan 12, 2007, 1:12:37 PM (19 years ago)
Author:
jcc
Message:

Moved variable definition at top of function

Location:
trunk/Ohana/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/addstar/src/fakeimage.c

    r6763 r11081  
    1111  char *config;
    1212  Image *image;
     13  e_time MosaicTime;
    1314
    1415  /* this is a somewhat bogus method to set a time for the exposure */
     
    2021  srand48(seedval);
    2122
    22   e_time MosaicTime = 0xffffffff * drand48();
     23  MosaicTime = 0xffffffff * drand48();
    2324  fprintf (stderr, "time: %x\n", MosaicTime);
    2425
  • trunk/Ohana/src/gastro2/src/sort.c

    r7994 r11081  
    9999void sort (double *X, int N) {
    100100
    101   if (N < 2) return;
    102 
    103101  int l,j,ir,i;
    104102  double tmp;
     103
     104  if (N < 2) return;
    105105 
    106106  l = N >> 1;
  • trunk/Ohana/src/opihi/cmd.basic/macro.c

    r11007 r11081  
    44
    55  int i, N, status;
     6  CommandF *cmd;
    67
    78  if ((argc != 2) && (argc != 3) && (argc != 4)) {
     
    1718    return (FALSE);
    1819  }
    19 
    20   CommandF *cmd;
    2120
    2221  cmd = find_macro_command (argv[1]);
  • trunk/Ohana/src/opihi/cmd.data/book_commands.c

    r11053 r11081  
    154154int book_newpage (int argc, char **argv) {
    155155
     156  Book *book;
     157
    156158  if (argc != 3) {
    157159    gprint (GP_ERR, "USAGE: book newpage (book) (page)\n");
    158160    return FALSE;
    159161  }
    160 
    161   Book *book;
    162162
    163163  book = FindBook (argv[1]);
Note: See TracChangeset for help on using the changeset viewer.