pike.git / src / builtin_functions.c

version» Context lines:

pike.git/src/builtin_functions.c:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: builtin_functions.c,v 1.703 2010/07/27 15:33:37 mast Exp $ + || $Id: builtin_functions.c,v 1.704 2010/07/27 16:46:01 mast Exp $   */      #include "global.h"   #include "interpret.h"   #include "svalue.h"   #include "pike_macros.h"   #include "object.h"   #include "program.h"   #include "array.h"   #include "pike_error.h"
pike.git/src/builtin_functions.c:2879:    *! @[crypted_password], and returns @expr{1@} if they match, and    *! @expr{0@} (zero) otherwise.    *!    *! @note    *! Note that strings containing null characters will only be    *! processed up until the null character.    */   PMOD_EXPORT void f_crypt(INT32 args)   {    char salt[2]; -  char *ret, *pwd, *saltp; +  char *ret, *pwd, *saltp = NULL;    char *choise =    "cbhisjKlm4k65p7qrJfLMNQOPxwzyAaBDFgnoWXYCZ0123tvdHueEGISRTUV89./";       get_all_args("crypt", args, "%s.%s", &pwd, &saltp);    -  if(args>1) +  if(saltp)    {    if( Pike_sp[1-args].u.string->len < 2 )    {    pop_n_elems(args);    push_int(0);    return;    }    } else {    unsigned int foo; /* Sun CC want's this :( */    foo=my_rand();
pike.git/src/builtin_functions.c:5494: Inside #if defined (HAVE_MKTIME) || defined (HAVE_LOCALTIME)
   *!    *! On most systems, the supported range of dates are Dec 13, 1901    *! 20:45:52 UTC through Jan 19, 2038 03:14:07 UTC (inclusive).    *!    *! @seealso    *! @[time()], @[ctime()], @[localtime()], @[gmtime()]    */   PMOD_EXPORT void f_mktime (INT32 args)   {    INT_TYPE sec, min, hour, mday, mon, year; -  INT_TYPE isdst = -1, tz; +  INT_TYPE isdst = -1, tz = 0;    struct tm date;    time_t retval;       if (args<1)    SIMPLE_TOO_FEW_ARGS_ERROR("mktime", 1);       if(args == 1)    {    MEMSET(&date, 0, sizeof(date));