diff --git a/XYPlotParam.H b/XYPlotParam.H index 5cf1811..434aec9 100644 --- a/XYPlotParam.H +++ b/XYPlotParam.H @@ -198,7 +198,7 @@ private: // // Look up item in table -- return zero if not found // - param_full * st_lookup(register char *key); + param_full * st_lookup(char *key); // // Insert an item into the table - replacing if it already exists @@ -215,10 +215,10 @@ private: // void rehash(void); - int strihash(register char *xypstring) { - register int val = 0; - register int c; - register int i = 0; + int strihash(char *xypstring) { + int val = 0; + int c; + int i = 0; while ((c = *xypstring++) != '\0') { if(isupper(c)) { diff --git a/XYPlotParam.cpp b/XYPlotParam.cpp index a797d40..fb7cd76 100644 --- a/XYPlotParam.cpp +++ b/XYPlotParam.cpp @@ -510,8 +510,8 @@ void XYPlotParameters::WriteToFile(char *filename) { // // // ------------------------------------------------------------------- -param_full *XYPlotParameters::st_lookup(register char *key) { - register st_table_entry *ptr; +param_full *XYPlotParameters::st_lookup(char *key) { + st_table_entry *ptr; // find entry. ptr = param_table.bins[strihash(key)]; @@ -532,7 +532,7 @@ param_full *XYPlotParameters::st_lookup(register char *key) { int XYPlotParameters::st_insert(char *key, param_full *value) { int hash_val; st_table_entry *newentry; - register st_table_entry *ptr, **last; + st_table_entry *ptr, **last; hash_val = strihash(key);