changes reqd to compile on linux

git-svn-id: svn://136.177.114.72/svn_GW/IPhreeqc/branches/class@4150 1feff8c3-07ed-0310-ac33-dd36852eb9cd
This commit is contained in:
Scott R Charlton 2010-03-06 04:55:37 +00:00
parent 4d34613b6e
commit 59e3083acd
2 changed files with 5 additions and 5 deletions

View File

@ -73,7 +73,7 @@ f2cstring(char* fstring, int len)
}
void
padfstring(char *dest, char *src, unsigned int len)
padfstring(char *dest, const char *src, unsigned int len)
{
unsigned int sofar;

View File

@ -6,7 +6,7 @@
#include <string.h> /* strlen */
extern char *f2cstring(char* fstring, int len);
extern void padfstring(char *dest, char *src, unsigned int len);
extern void padfstring(char *dest, const char *src, unsigned int len);
#define fullpathpp fullpathpp_
#define splitpathpp splitpathpp_
@ -63,8 +63,8 @@ splitpathpp(char *path, char* drive, char* dir, char* name, char* ext,
unsigned int ext_len)
{
int i;
int dot = 0;
int slash = 0;
size_t dot = 0;
size_t slash = 0;
int slash_found = 0;
char *cpath = NULL;
size_t plen = 0;
@ -72,7 +72,7 @@ splitpathpp(char *path, char* drive, char* dir, char* name, char* ext,
/* linux has no drives */
padfstring(drive, "", drive_len);
if (cpath = f2cstring(path, path_len)) {
if ((cpath = f2cstring(path, path_len))) {
plen = strlen(cpath);
}