(svn r3380) -Fix: removed 'size' from r3379, because it was pretty silly

-Note: no longer showhelp publish -p, as it is deprecated
This commit is contained in:
truelight
2006-01-07 10:15:46 +00:00
parent 835cd6ea28
commit e373bd02ba
3 changed files with 9 additions and 17 deletions

View File

@@ -206,23 +206,19 @@ int GetDriverParamInt(const char* const* parm, const char* name, int def)
}
int GetDriverList(char* p, int size)
char *GetDriverList(char* p)
{
const DriverClass* dc;
int pos;
for (dc = _driver_classes; dc != endof(_driver_classes); dc++) {
const DriverDesc* dd;
pos = snprintf(p, size, "List of %s drivers:\n", dc->name);
p += pos; size -= pos;
p += sprintf(p, "List of %s drivers:\n", dc->name);
for (dd = dc->descs; dd->name != NULL; dd++) {
pos = snprintf(p, size, "%10s: %s\n", dd->name, dd->longname);
p += pos; size -= pos;
p += sprintf(p, "%10s: %s\n", dd->name, dd->longname);
}
pos = snprintf(p, size, "\n");
p += pos; size -= pos;
p += sprintf(p, "\n");
}
return size;
return p;
}