Changeset 6624 for nanoscale


Ignore:
Timestamp:
Nov 14, 2016 1:18:06 PM (7 years ago)
Author:
ldelgass
Message:

Some minor cleanups to sync with 1.0 branch

Location:
nanoscale/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • nanoscale/trunk/Makefile.in

    r6574 r6624  
    1 USE_TCL_CONFIG  = #yes
    2 WANT_TRACE      = #yes
     1USE_TCL_CONFIG  = #yes
     2WANT_TRACE      = #yes
    33
    44CC              = @CC@
     
    2828SERVER_OBJS     = server.o
    2929ifdef USE_TCL_CONFIG
    30 SERVER_OBJS    += tclparser.o
     30SERVER_OBJS     += tclparser.o
    3131else
    32 SERVER_OBJS    += configparser.o
     32SERVER_OBJS     += configparser.o
    3333endif
    3434CLIENT_OBJS     = client.o clientlib.o
     
    4141
    4242ifdef WANT_TRACE
    43 DEFINES         = -DWANT_TRACE
     43DEFINES         = -DWANT_TRACE
    4444endif
    4545ifdef USE_TCL_CONFIG
    46 CONFIGFILE      = renderservers.tcl
    47 DEFINES         = -DTCL_CONFIG
     46CONFIGFILE      = renderservers.tcl
     47DEFINES         = -DTCL_CONFIG
    4848else
    49 CONFIGFILE      = renderservers.cfg
    50 DEFINES         =
     49CONFIGFILE      = renderservers.cfg
     50DEFINES         =
    5151endif
    5252DEFINES         += -DSERVERSFILE=\"$(libdir)/$(CONFIGFILE)\" \
     
    5555INCLUDES        = -I.
    5656ifdef USE_TCL_CONFIG
    57 INCLUDES       += $(TCL_INC_SPEC)
     57INCLUDES        += $(TCL_INC_SPEC)
    5858endif
    5959ifdef USE_TCL_CONFIG
    60 LIBS            = $(TCL_LIB_SPEC) -Wl,-rpath,$(LD_RUN_PATH)
     60LIBS            = $(TCL_LIB_SPEC) -Wl,-rpath,$(LD_RUN_PATH)
    6161else
    62 LIBS            =
     62LIBS            =
    6363endif
    6464
  • nanoscale/trunk/server.c

    r6609 r6624  
    2020#include <sys/stat.h>
    2121#include <sys/file.h>
     22#include <syslog.h>
    2223#include <unistd.h>
    2324#include <fcntl.h>
     
    8283    if (serverPid != getpid()) {
    8384        length = snprintf(message, MSG_LEN, "(%d) %s: %s:%d ",
    84                           serverPid, syslogLevels[priority],  s, lineNum);
     85                          serverPid, syslogLevels[priority], s, lineNum);
    8586    } else {
    8687        length = snprintf(message, MSG_LEN, "%s: %s:%d ",
    87                           syslogLevels[priority],  s, lineNum);
     88                          syslogLevels[priority], s, lineNum);
    8889    }
    8990    length += vsnprintf(message + length, MSG_LEN - length, fmt, lst);
Note: See TracChangeset for help on using the changeset viewer.