mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-24 13:13:17 -05:00
Code cleanups provided by David Imhoff
This commit is contained in:
parent
642f060ec6
commit
a6572b3f34
14
CREDITS
14
CREDITS
@ -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)
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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"
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user