Fix gcc warning about usage of identifier "main"; renamed the variable to
authorKen Hughes <khughes@pacific.edu>
Mon, 27 Mar 2006 22:33:21 +0000 (22:33 +0000)
committerKen Hughes <khughes@pacific.edu>
Mon, 27 Mar 2006 22:33:21 +0000 (22:33 +0000)
"mainptr".

source/blender/blenloader/intern/readfile.c

index a7a0beb579db7271ba5b75e82c4f83b019681ecd..2740c7c9643ddc5ef47f46b6d27db2c1e45ce23b 100644 (file)
@@ -1043,12 +1043,12 @@ static void change_idid_adr_fd(FileData *fd, void *old, void *new)
 
 static void change_idid_adr(ListBase *mainlist, FileData *basefd, void *old, void *new)
 {
-       Main *main;
+       Main *mainptr;
        
-       for(main= mainlist->first; main; main= main->next) {
+       for(mainptr= mainlist->first; mainptr; mainptr= mainptr->next) {
                FileData *fd;
                
-               if(main->curlib) fd= main->curlib->filedata;
+               if(mainptr->curlib) fd= mainptr->curlib->filedata;
                else fd= basefd;
                
                if(fd) {