summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerdgeist <>2009-08-28 16:13:08 +0000
committererdgeist <>2009-08-28 16:13:08 +0000
commitff494dcbfcbc253e26dc14b4a89160118d503c61 (patch)
tree7cf3ccefc10d571cc316c456cab18f30c04479ed
parent5b0e34989befd4ab52109ffbec5553f348b2afa2 (diff)
void* data types are of uintptr_t width.
-rwxr-xr-xvchat-client.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/vchat-client.c b/vchat-client.c
index 11c39d3..d28f38d 100755
--- a/vchat-client.c
+++ b/vchat-client.c
@@ -311,9 +311,9 @@ setnoption (char *name, char *string)
311 if (configoptions[i].localvar.pstr) 311 if (configoptions[i].localvar.pstr)
312 *configoptions[i].localvar.pstr = configoptions[i].value; 312 *configoptions[i].localvar.pstr = configoptions[i].value;
313 } else if (configoptions[i].type == CO_INT) { 313 } else if (configoptions[i].type == CO_INT) {
314 configoptions[i].value = (char *) atoi(string); 314 configoptions[i].value = (char *)(uintptr_t)atoi(string);
315 if (configoptions[i].localvar.pint) 315 if (configoptions[i].localvar.pint)
316 *configoptions[i].localvar.pint = (int)configoptions[i].value; 316 *configoptions[i].localvar.pint = (uintptr_t)configoptions[i].value;
317 } 317 }
318 } 318 }
319} 319}
@@ -328,10 +328,10 @@ getintoption (confopt option)
328#endif 328#endif
329 for (i = 0; configoptions[i].type != CO_NIL; i++) 329 for (i = 0; configoptions[i].type != CO_NIL; i++)
330 if ((configoptions[i].id == option) && (configoptions[i].type == CO_INT)) { 330 if ((configoptions[i].id == option) && (configoptions[i].type == CO_INT)) {
331 if ((int)configoptions[i].value == -1) 331 if ((uintptr_t)configoptions[i].value == -1)
332 return (int) configoptions[i].defaultvalue; 332 return (uintptr_t) configoptions[i].defaultvalue;
333 else 333 else
334 return (int) configoptions[i].value; 334 return (uintptr_t) configoptions[i].value;
335 } 335 }
336 return 0; 336 return 0;
337} 337}
@@ -346,9 +346,9 @@ setintoption (confopt option, int value)
346#endif 346#endif
347 for (i = 0; configoptions[i].type != CO_NIL; i++) 347 for (i = 0; configoptions[i].type != CO_NIL; i++)
348 if ((configoptions[i].id == option) && (configoptions[i].type == CO_INT)) { 348 if ((configoptions[i].id == option) && (configoptions[i].type == CO_INT)) {
349 configoptions[i].value = (char *) value; 349 configoptions[i].value = (char *)(uintptr_t)value;
350 if (configoptions[i].localvar.pint) 350 if (configoptions[i].localvar.pint)
351 *configoptions[i].localvar.pint = (int)configoptions[i].value; 351 *configoptions[i].localvar.pint = (uintptr_t)configoptions[i].value;
352 } 352 }
353} 353}
354 354