summaryrefslogtreecommitdiffstats
path: root/unrarlib.c
diff options
context:
space:
mode:
authoralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-05-18 10:42:03 +0000
committeralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-05-18 10:42:03 +0000
commit652cf76466c547529ae6d096ce4bbdafdb01a293 (patch)
tree9fb081a2d41f6397fce1af9c12cbcabff260c56d /unrarlib.c
parentcea5e940feb24c05ca77c01b3173af3ee579bcae (diff)
downloadmpv-652cf76466c547529ae6d096ce4bbdafdb01a293.tar.bz2
mpv-652cf76466c547529ae6d096ce4bbdafdb01a293.tar.xz
avoid symbol clash with never samba versions (btw, unrarlib.c is full of global variables, with common names :( and it's a bit bloated, I think)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10128 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'unrarlib.c')
-rw-r--r--unrarlib.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/unrarlib.c b/unrarlib.c
index f02aaf7eb8..4b6dd8482d 100644
--- a/unrarlib.c
+++ b/unrarlib.c
@@ -360,7 +360,7 @@ static void ReadLastTables(void);
static void MakeDecodeTables(unsigned char *LenTab,
struct Decode *Dec,
int Size);
-int stricomp(char *Str1,char *Str2);
+static int my_stricomp(char *Str1,char *Str2);
/* ------------------------------------------------------------------------ */
@@ -964,7 +964,7 @@ BOOL ExtrFile(void)
}
- if(TRUE == (FileFound=(stricomp(ArgName, ArcFileName) == 0)))
+ if(TRUE == (FileFound=(my_stricomp(ArgName, ArcFileName) == 0)))
/* *** file found! *** */
{
{
@@ -1038,7 +1038,7 @@ BOOL ExtrFile(void)
#else
if (ArcPtr!=NULL) tseek(ArcPtr,NextBlockPos,SEEK_SET);
#endif
- } while(stricomp(ArgName, ArcFileName) != 0);/* exit if file is extracted */
+ } while(my_stricomp(ArgName, ArcFileName) != 0);/* exit if file is extracted */
/* free memory, clear password and close archive */
free(UnpMemory);
@@ -1119,7 +1119,7 @@ int tseek(void *stream,long offset,int fromwhere)
#endif
-char* strupper(char *Str)
+static char* my_strupper(char *Str)
{
char *ChPtr;
for (ChPtr=Str;*ChPtr;ChPtr++)
@@ -1127,8 +1127,8 @@ char* strupper(char *Str)
return(Str);
}
-
-int stricomp(char *Str1,char *Str2)
+
+static int my_stricomp(char *Str1,char *Str2)
/* compare strings without regard of '\' and '/' */
{
char S1[512],S2[512];
@@ -1157,7 +1157,7 @@ int stricomp(char *Str1,char *Str2)
*chptr = '_';
}
- return(strcmp(strupper(S1),strupper(S2)));
+ return(strcmp(my_strupper(S1),my_strupper(S2)));
}