Changeset 86


Ignore:
Timestamp:
Mar 6, 2008, 2:10:10 PM (10 years ago)
Author:
Sam Hocevar
Message:
  • Get rid of nonexistent macify_name() function. According to the original source tree, this function simply replaced slashes with underscores in filenames.
Location:
abuse/trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/cache.cpp

    r60 r86  
    671671}
    672672
    673 extern char *macify_name(char *s);
    674 
    675673void cache_list::create_lcache()
    676674{
     
    689687#if defined( __APPLE__ )
    690688                unlink(lfname);
    691 #if (defined(__APPLE__) && !defined(__MACH__))
    692                 macify_name(lfname);
    693 #endif
    694689                FILE *fp=fopen(lfname,"wb");
    695690                if (fp)
  • abuse/trunk/src/game.cpp

    r85 r86  
    8181extern int confirm_quit();
    8282
    83 #if(defined(__APPLE__) && !defined(__MACH__))
    84 extern char *macify_name(char *s);
    85 #endif
    86 
    8783// Enabled TCPIP driver
    8884#include "tcpip.hpp"
     
    9793    else
    9894        strcpy(tmp_name, filename);
    99 #if(defined(__APPLE__) && !defined(__MACH__))
    100     macify_name(tmp_name);
    101 #endif
    10295    return fopen(tmp_name, mode);
    10396}
    104 
    10597
    10698void handle_no_space()
  • abuse/trunk/src/imlib/specs.cpp

    r56 r86  
    2727#include "jmalloc.hpp"
    2828#include "dprint.hpp"
    29 
    30 #if (defined(__APPLE__) && !defined(__MACH__))
    31 extern char *macify_name(char *s);
    32 #endif
    3329
    3430char const *spec_types[] =
     
    296292void fast_load_start_recording(char *filename)
    297293{
    298 #if (defined(__APPLE__) && !defined(__MACH__))
    299   fast_load_fd = ::open(macify_name(filename),O_BINARY|O_CREAT|O_RDWR);
    300 #else
    301   fast_load_fd = ::open(filename,O_CREAT|O_RDWR,S_IRWXU | S_IRWXG | S_IRWXO);
    302 #endif
    303         fast_load_mode = 1;
     294    fast_load_fd = ::open(filename,O_CREAT|O_RDWR,S_IRWXU | S_IRWXG | S_IRWXO);
     295    fast_load_mode = 1;
    304296}
    305297
    306298void fast_load_stop_recording()
    307299{
    308         fast_load_mode = 0;
     300    fast_load_mode = 0;
    309301}
    310302
    311303void fast_load_start_reloading(char *filename)
    312304{
    313 #if (defined(__APPLE__) && !defined(__MACH__))
    314   fast_load_fd = ::open(macify_name(filename),O_BINARY|O_RDONLY);
    315 #else
    316   fast_load_fd = ::open(filename,O_RDONLY);
    317 #endif
    318         fast_load_mode = 2;
     305    fast_load_fd = ::open(filename,O_RDONLY);
     306    fast_load_mode = 2;
    319307}
    320308
    321309void fast_load_stop_reloading()
    322310{
    323         fast_load_mode = 0;
     311    fast_load_mode = 0;
    324312}
    325313
     
    356344    flags|=O_CREAT|O_RDWR;
    357345
    358 #if (defined(__APPLE__) && !defined(__MACH__))
    359     fd=open(macify_name(tmp_name),flags);
    360 #else
    361346    fd=open(tmp_name,flags,S_IRWXU | S_IRWXG | S_IRWXO);
    362 #endif
    363347  } else
    364 #if (defined(__APPLE__) && !defined(__MACH__))
    365     fd=open(macify_name(tmp_name),flags);
    366 #else
    367348    fd=open(tmp_name,flags);
    368 #endif
    369349
    370350//  umask(old_mask);
Note: See TracChangeset for help on using the changeset viewer.