Code cleanups provided by David Imhoff

This commit is contained in:
Ron Pedde 2004-02-24 00:34:04 +00:00
parent 642f060ec6
commit a6572b3f34
5 changed files with 20 additions and 7 deletions

14
CREDITS
View File

@ -4,7 +4,7 @@ I've received lots of help from people on this project.
These are the people who have contributed to whatever
small success this project enjoys (in order of
contribution)
contribution). If I've forgotten anyone, I apologize.
Aubin Paul (debian@outlyer.org)
* Patches for Debian package generation
@ -14,3 +14,15 @@ Paul Forgey (paulf@aphrodite.com)
* Tons of troubleshooting on Solaris
* Fixes for readdir_r
Paul Hubbard (hubbard@mcs.anl.gov)
* T/S and patch testing to resolve scanning bugs
David Buttrick (dbuttric@users.sourceforge.net)
* Webmastering, FAQ maintenance, Doc maintenance
Hans-Christoph Steiner (eighthave@users.sourceforge.net)
* Webmastering, FAQ maintenance, Doc maintenance
David Imhoff (6219@thrijswijk.nl)
* Code cleanup patches (_XOPEN_SOURCE, declaration problems)

View File

@ -127,11 +127,10 @@ int config_session=0;
int config_read(char *file) {
FILE *fin;
char *buffer;
int err;
int err=0;
char *value;
char *comment;
char path_buffer[PATH_MAX];
err=0;
CONFIGELEMENT *pce;
int handled;

View File

@ -19,12 +19,11 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#define _XOPEN_SOURCE 600
#include <errno.h>
#include <stdio.h>
#include <string.h>
#define __USE_UNIX98
#include <pthread.h>
#include "err.h"

View File

@ -416,6 +416,7 @@ int main(int argc, char *argv[]) {
WSHANDLE server;
int parseonly=0;
int foreground=0;
config.use_mdns=1;
fprintf(stderr,"mt-daapd: version %s\n",VERSION);

View File

@ -918,9 +918,11 @@ int ws_testrequestheader(WS_CONNINFO *pwsc, char *header, char *value) {
*
*/
int ws_testarg(ARGLIST *root, char *key, char *value) {
char *retval;
DPRINTF(ERR_DEBUG,"Checking to see if %s matches %s\n",key,value);
char *retval=ws_getarg(root,key);
retval=ws_getarg(root,key);
if(!retval)
return 0;