functionSource
stringlengths
20
97.4k
CWE-119
bool
2 classes
CWE-120
bool
2 classes
CWE-469
bool
2 classes
CWE-476
bool
2 classes
CWE-other
bool
2 classes
combine
int64
0
1
httpMaybeRemovePublic(StoreEntry * e, HttpReply * reply) { int status; int remove = 0; int forbidden = 0; StoreEntry *pe; request_t *req; const char *reqUrl; status = reply->sline.status; switch (status) { case HTTP_OK: case HTTP_NON_AUTHORITATIVE_INFORMATION: case HTTP_MULT...
false
false
false
false
false
0
tpl_dbus_service_clear_account (TplSvcLogger *logger, const gchar *account_path, DBusGMethodInvocation *context) { TplDBusService *self = TPL_DBUS_SERVICE (logger); TpDBusDaemon *bus; TpAccount *account; GError *error = NULL; g_return_if_fail (TPL_IS_DBUS_SERVICE (self)); g_return_if_fail (context ...
false
false
false
false
false
0
gst_base_parse_find_offset (GstBaseParse * parse, GstClockTime time, gboolean before, GstClockTime * _ts) { gint64 bytes = 0, ts = 0; GstIndexEntry *entry = NULL; if (time == GST_CLOCK_TIME_NONE) { ts = time; bytes = -1; goto exit; } GST_BASE_PARSE_INDEX_LOCK (parse); if (parse->priv->inde...
false
false
false
false
false
0
ocrdma_create_ah(struct ib_pd *ibpd, struct ib_ah_attr *attr) { u32 *ahid_addr; int status; struct ocrdma_ah *ah; bool isvlan = false; u16 vlan_tag = 0xffff; struct ib_gid_attr sgid_attr; struct ocrdma_pd *pd = get_ocrdma_pd(ibpd); struct ocrdma_dev *dev = get_ocrdma_dev(ibpd->device); union ib_gid sgid; if ...
false
false
false
true
false
1
vlan_print_flags(FILE *fp, __u32 flags) { fprintf(fp, "<"); #define _PF(f) if (flags & VLAN_FLAG_##f) { \ flags &= ~ VLAN_FLAG_##f; \ fprintf(fp, #f "%s", flags ? "," : ""); \ } _PF(REORDER_HDR); _PF(GVRP); _PF(MVRP); _PF(LOOSE_BINDING); #undef _PF if (flags) fprintf(fp, "%x", flags); fprintf(fp, "> ")...
false
false
false
false
true
1
nvme_submit_io(struct nvme_ns *ns, struct nvme_user_io __user *uio) { struct nvme_user_io io; struct nvme_command c; unsigned length, meta_len; void __user *metadata; if (copy_from_user(&io, uio, sizeof(io))) return -EFAULT; switch (io.opcode) { case nvme_cmd_write: case nvme_cmd_read: case nvme_cmd_compar...
false
false
false
false
false
0
dtype_is_binary_string_type( /*========================*/ ulint mtype, /*!< in: main data type */ ulint prtype) /*!< in: precise type */ { if ((mtype == DATA_FIXBINARY) || (mtype == DATA_BINARY) || (mtype == DATA_BLOB && (prtype & DATA_BINARY_TYPE))) { return(TRUE); } return(FALSE); }
false
false
false
false
false
0
int_engine_init(ENGINE *e) { if (!ENGINE_init(e)) return 0; if (!initialized_engines) initialized_engines = sk_ENGINE_new_null(); if (!initialized_engines || !sk_ENGINE_push(initialized_engines, e)) { ENGINE_finish(e); return 0; } return 1; }
false
false
false
false
false
0
conf_fgets(char *lbuf, int max_size, FILE * fb) { char *p; if(fgets(lbuf, max_size, fb) == NULL) return (0); if((p = strpbrk(lbuf, "\r\n")) != NULL) { *p++ = '\n'; *p = '\0'; } return (strlen(lbuf)); }
false
false
false
false
false
0
test_extension_c_instance_refcount (PeasEngine *engine, PeasPluginInfo *info) { PeasExtension *extension; extension = peas_engine_create_extension (engine, info, INTROSPECTION_TYPE_BASE, ...
false
false
false
false
false
0
STREAM_get_readable(STREAM *stream, int *len) { int fd; off_t off; off_t end; fd = STREAM_handle(stream); //_IOCTL: #ifdef FIONREAD if (!stream->common.no_fionread) { if (ioctl(fd, FIONREAD, len) >= 0) return 0; stream->common.no_fionread = TRUE; } #endif //_LSEEK: if (!stream->common.no_ls...
false
false
false
false
false
0
add_lookback_edge(int stateno, int ruleno, int gotono) { register int i, k; register int found; register shorts *sp; i = lookaheads[stateno]; k = lookaheads[stateno + 1]; found = 0; while (!found && i < k) { if (LAruleno[i] == ruleno) found = 1; else ...
false
false
false
false
false
0
WriteFreeParameters(FILE *f, char *filename, TStateModel *model) { int n; TVector parameters; FILE *f_out=f ? f : filename ? fopen(filename,"at") : (FILE*)NULL; if (f_out) { if (parameters=CreateVector((n=NumberFreeParametersTheta(model))+NumberFreeParametersQ(model))) { ConvertThetaToFre...
false
false
false
false
true
1
redial_cb(Fax_item fax_item, guint* id, bool&) { // check preconditions // if the user has decided to change settings since the timeout was set // and we no longer automatically redial, just remove the timeout if (!prog_config.redial) { redial_queue.remove(id); return; } // we don't want to start a ...
false
false
false
false
false
0
transaction_list_update_column ( gint column, GValue *value ) { gint i; GtkTreeIter iter; CustomList *custom_list; custom_list = transaction_model_get_model (); g_return_val_if_fail (G_IS_VALUE (value), FALSE); g_return_val_if_fail (value != NULL, FALSE); g_return_v...
false
false
false
false
false
0
arbond_list_add (const MODEL *orig, const int *add, int *err) { const int *old = orig->list; int *new = gretl_list_copy(old); int sep = 0, pos = old[0] + 1; int i; if (new == NULL) { *err = E_ALLOC; return NULL; } for (i=2; i<=old[0]; i++) { if (old[i] == LISTSEP) { sep++; if ...
false
false
false
false
false
0
ci_fan_ctrl_get_mode(struct radeon_device *rdev) { struct ci_power_info *pi = ci_get_pi(rdev); u32 tmp; if (pi->fan_is_controlled_by_smc) return 0; tmp = RREG32_SMC(CG_FDO_CTRL2) & FDO_PWM_MODE_MASK; return (tmp >> FDO_PWM_MODE_SHIFT); }
false
false
false
false
false
0
epr_free_raster(EPR_SRaster* raster) { epr_clear_err(); if (raster == NULL) return; raster->data_type = e_tid_unknown; raster->elem_size = 0; raster->raster_height = 0; raster->raster_width = 0; raster->source_height = 0; raster->source_width = 0; raster->source_step_...
false
false
false
false
false
0
setCount(const int& cnt){ if(count==cnt){return 1;} count=0; if(segments1){delete[] segments1;} if(segments2){delete[] segments2;} if(!cnt){return 1;} segments1=new OrientedLineSegment[cnt]; if(!segments1){return 0;} segments2=new OrientedLineSegment[cnt]; if(!segments2){ delete[] segments1; return 0; ...
false
false
false
false
false
0
Scan_Set_Scanner_Window_Init_Position (void) { if (ScannerWindow && SET_SCANNER_WINDOW_POSITION) { gtk_widget_realize(ScannerWindow); gtk_window_move(GTK_WINDOW(ScannerWindow),SCANNER_WINDOW_X,SCANNER_WINDOW_Y); } }
false
false
false
false
false
0
a2i (const char *a) { int neg = 0; int base = 10; unsigned long long num = 0; int looping; while (isspace (*a)) a++; if (strcmp (a, "true") == 0 || strcmp (a, "TRUE") == 0) return 1; if (strcmp (a, "false") == 0 || strcmp (a, "false") == 0) return 0; if (*a == '-') { neg = 1; ...
false
false
true
false
true
1
gedit_message_bus_send_sync (GeditMessageBus *bus, const gchar *object_path, const gchar *method, const gchar *first_property, ...) { va_list var_args; GeditMessage *message; va_start (var...
false
false
false
false
false
0
get_client_name(const struct Client *client, int showip) { static char nbuf[HOSTLEN * 2 + USERLEN + 5]; assert(client != NULL); if (irccmp(client->name, client->host) == 0) return client->name; if (ConfigServerHide.hide_server_ips) if (IsServer(client) || IsConnecting(client) || IsHandshake(client)) ...
false
false
false
false
false
0
gabedit_xyplot_set_data_point_size (GabeditXYPlot *xyplot, gdouble point_size) { g_return_if_fail (xyplot != NULL); g_return_if_fail (GABEDIT_IS_XYPLOT (xyplot)); if(point_size<0) point_size = 0; gtk_widget_queue_draw(GTK_WIDGET(xyplot)); XYPlotData *current_data; GList *current_node; if (xyplot->data_lis...
false
false
false
false
false
0
inetNetToMediaTable_indexes_set_tbl_idx(inetNetToMediaTable_mib_index * tbl_idx, long inetNetToMediaIfIndex_val, u_long inetNetToMediaNetAddressType_val, ...
false
false
false
false
false
0
dump_chunk(const char *debugtoken, const char *title, const u_char * buf, int size) { int printunit = 64; /* XXX Make global. */ char chunk[SNMP_MAXBUF], *s, *sp; if (title && (*title != '\0')) { DEBUGMSGTL((debugtoken, "%s\n", title)); } memset(chun...
true
true
false
false
false
1
pine_mail_ping(MAILSTREAM *stream) { time_t now; long ret = 0L; if(!sp_dead_stream(stream)){ ret = mail_ping(stream); if(ret && sp_dead_stream(stream)) ret = 0L; } if(ret){ now = time(0); sp_set_last_ping(stream, now); sp_set_last_expunged_reaper(stream, now); } return(ret); }
false
false
false
false
false
0
wnck_tasklist_finalize (GObject *object) { WnckTasklist *tasklist; tasklist = WNCK_TASKLIST (object); /* Tasks should have gone away due to removing their * buttons in container destruction */ g_assert (tasklist->priv->class_groups == NULL); g_assert (tasklist->priv->windows == NULL); g_assert (task...
false
false
false
false
false
0
lua_getuserdata (lua_Object object) { if (object == LUA_NOOBJECT || ttype(Address(object)) != LUA_T_USERDATA) return NULL; else return tsvalue(Address(object))->u.v; }
false
false
false
false
false
0
StartServer() { #ifdef ENABLE_UPNP if (m_upnpEnabled) { m_upnpMappings.resize(1); m_upnpMappings[0] = CUPnPPortMapping( webInterface->m_WebserverPort, "TCP", true, "aMule TCP Webserver Socket"); m_upnp = new CUPnPControlPoint(m_upnpTCPPort); m_upnp->AddPortMappings(m_upnpMappings); } #endif wxIP...
false
false
false
false
false
0
lf_convert_24_32( cct_true_true_conversion_table table, unsigned char *input, unsigned int *output, int pixel_count) { int x; for(x = pixel_count; x; x--) { unsigned int o; o = table->pixel_values[0][input[0]]; o += table->pixel_values[1][input[1]]; o += table->pixel_values[2][input[2]]; ...
false
false
false
false
false
0
gt_str_append_double(GtStr *dest, double d, int precision) { char buf[BUFSIZ]; GT_UNUSED int rval; gt_assert(dest); rval = snprintf(buf, BUFSIZ, "%.*f", precision, d); gt_assert(rval < BUFSIZ); gt_str_append_cstr(dest, buf); }
true
true
false
false
false
1
putcapacitance(char* name, double capacitance) { signal_list* signal; if (!name) { fprintf(stderr,"putcapacitance: no name\n"); autexit(1); } signal=getsignal(name,1/*if doesn't exist create it*/); signal->C=capacitance; if (signal->C<0) signal->C=0; }
false
false
false
false
false
0
operator=(const unsigned long value) { if (value == 0) { if (quantity) _clear(); } else { commodity_ = NULL; _init(); mpz_set_ui(MPZ(quantity), value); } return *this; }
false
false
false
false
false
0
CmdNot(int code) { char c, *s; c = getTexChar(); switch (c) { case '=': CmdUnicodeChar(8800); break; case '<': CmdUnicodeChar(8814); break; case '>': CmdUnicodeChar(8815); break; ...
false
false
false
false
false
0
peerGetSomeParent(ps_state * ps) { peer *p; request_t *request = ps->request; hier_code code = HIER_NONE; debug(44, 3) ("peerGetSomeParent: %s %s\n", request->method->string, request->host); if (ps->direct == DIRECT_YES) return; if ((p = getDefaultParent(request))) { code = DEFAULT_PARENT; ...
false
false
false
false
false
0
PQcancel(PGcancel *cancel, char *errbuf, int errbufsize) { if (!cancel) { strlcpy(errbuf, "PQcancel() -- no cancel object supplied", errbufsize); return FALSE; } return internal_cancel(&cancel->raddr, cancel->be_pid, cancel->be_key, errbuf, errbufsize); }
false
false
false
false
false
0
find_mpe (char * wwid) { int i; struct mpentry * mpe; if (!wwid) return NULL; vector_foreach_slot (conf->mptable, mpe, i) if (mpe->wwid && !strcmp(mpe->wwid, wwid)) return mpe; return NULL; }
false
false
false
false
false
0
_conn_request_state(struct drbd_connection *connection, union drbd_state mask, union drbd_state val, enum chg_state_flags flags) { enum drbd_state_rv rv = SS_SUCCESS; struct after_conn_state_chg_work *acscw; enum drbd_conns oc = connection->cstate; union drbd_state ns_max, ns_min, os; bool have_mutex = false...
false
false
false
false
false
0
miner_progress_changed (GDBusConnection *connection, const gchar *sender_name, const gchar *object_path, const gchar *interface_name, const gchar *signal_name, GVariant *paramet...
false
false
false
false
false
0
gimplify_statement_list (tree *expr_p, gimple_seq *pre_p) { tree temp = voidify_wrapper_expr (*expr_p, NULL); tree_stmt_iterator i = tsi_start (*expr_p); while (!tsi_end_p (i)) { gimplify_stmt (tsi_stmt_ptr (i), pre_p); tsi_delink (&i); } if (temp) { *expr_p = temp; return...
false
false
false
false
false
0
snd_ali_convert_rate(unsigned int rate, int rec) { unsigned int delta; if (rate < 4000) rate = 4000; if (rate > 48000) rate = 48000; if (rec) { if (rate == 44100) delta = 0x116a; else if (rate == 8000) delta = 0x6000; else if (rate == 48000) delta = 0x1000; else delta = ((48000 << 12) / ra...
false
false
false
false
false
0
Update(Statement* stat) { if (!enabled_) return; Assignment* assignment = AsAssignment(stat); if (InBlock()) { if (BlockContinues(assignment)) { UpdateBlock(assignment); } else { EndBlock(); } } if (!InBlock() && (assignment != NULL) && (assignment->op() == ...
false
false
false
false
false
0
find_version (const char **attribute_names, const char **attribute_values) { int i; for (i = 0; attribute_names[i]; i++) { if (strcmp (attribute_names[i], "version") == 0) return attribute_values[i]; } return NULL; }
false
false
false
false
false
0
_gssapi_encapsulate( OM_uint32 *minor_status, const krb5_data *in_data, gss_buffer_t output_token, const gss_OID mech ) { size_t len, outer_len; void *p; _gssapi_encap_length (in_data->length, &len, &outer_len, mech); output_token->length = outer_len; output_token->value = malloc ...
false
false
false
false
false
0
cli_cmd_peer_probe_cbk (struct cli_state *state, struct cli_cmd_word *word, const char **words, int wordcount) { int ret = -1; rpc_clnt_procedure_t *proc = NULL; call_frame_t *frame = NULL; dict_t *dict = NULL; ...
true
true
false
false
false
1
AcpiNsGetAttachedObject ( ACPI_NAMESPACE_NODE *Node) { ACPI_FUNCTION_TRACE_PTR (NsGetAttachedObject, Node); if (!Node) { ACPI_WARNING ((AE_INFO, "Null Node ptr")); return_PTR (NULL); } if (!Node->Object || ((ACPI_GET_DESCRIPTOR_TYPE (Node->Object) != ACPI_DESC_...
false
false
false
false
false
0
try_connect(http_addr_t *addr, /* I - Socket address */ const char *addrname, /* I - Hostname or IP address */ int port) /* I - Port number */ { int fd; /* Socket */ int status; /* Connection status */ debug_printf("DEBUG: %.3f Trying %s://%s:%d...\n", run_time(), ...
false
false
false
false
false
0
sendMessage( const QList<GenericPlayer *> & list, QString msg ) { uint nbSockets = (uint) list.count(); for( uint k = 0; k < nbSockets; ++k ) { sendMessage( list.at(k), msg ); } }
false
false
false
false
false
0
cind (SCM ra, long *ve) { unsigned long i; int k; if (!SCM_I_ARRAYP (ra)) return *ve; i = SCM_I_ARRAY_BASE (ra); for (k = 0; k < SCM_I_ARRAY_NDIM (ra); k++) i += (ve[k] - SCM_I_ARRAY_DIMS (ra)[k].lbnd) * SCM_I_ARRAY_DIMS (ra)[k].inc; return i; }
false
false
false
false
false
0
ath10k_wmi_10x_op_fw_stats_fill(struct ath10k *ar, struct ath10k_fw_stats *fw_stats, char *buf) { unsigned int len = 0; unsigned int buf_len = ATH10K_FW_STATS_BUF_SIZE; const struct ath10k_fw_stats_pdev *pdev; const struct ath10k_fw_stats_vdev *vdev; const struct ath10k_fw_stats_peer *peer; size...
false
false
false
false
false
0
gst_wavparse_labl_chunk (GstWavParse * wav, const guint8 * data, guint32 size) { GstWavParseLabl *labl; if (size < 5) return FALSE; labl = g_new0 (GstWavParseLabl, 1); /* parse data */ data += 8; labl->cue_point_id = GST_READ_UINT32_LE (data); labl->text = g_memdup (data + 4, size - 4); wav->lab...
false
false
false
false
false
0
setkey(struct crypto_tfm *parent, const u8 *key, unsigned int keylen) { struct priv *ctx = crypto_tfm_ctx(parent); struct crypto_cipher *child = ctx->child; int err, bsize = LRW_BLOCK_SIZE; const u8 *tweak = key + keylen - bsize; crypto_cipher_clear_flags(child, CRYPTO_TFM_REQ_MASK); crypto_cipher_set_flags(...
false
false
false
false
false
0
nvme_trans_fill_caching_page(struct nvme_ns *ns, struct sg_io_hdr *hdr, u8 *resp, int len) { int res = 0; int nvme_sc; u32 feature_resp; u8 vwc; if (len < MODE_PAGE_CACHING_LEN) return -EINVAL; nvme_sc = nvme_get_features(ns->ctrl, NVME_FEAT_VOLATILE_WC, 0, NULL, 0, &feature_resp); res = nv...
false
false
false
false
false
0
gee_tree_map_sub_map_real_has (GeeAbstractMap* base, gconstpointer key, gconstpointer value) { GeeTreeMapSubMap * self; gboolean result = FALSE; gboolean _tmp0_ = FALSE; GeeTreeMapRange* _tmp1_ = NULL; gconstpointer _tmp2_ = NULL; gboolean _tmp3_ = FALSE; gboolean _tmp8_ = FALSE; self = (GeeTreeMapSubMap*) base...
false
false
false
false
false
0
MakeIsoHString( int num_iso_H[], char *szLinearCT, int nLen_szLinearCT, int nCtMode, int *bOverflow) { /* produce output string; */ int nLen = 0, len, tot_len, j, bOvfl = *bOverflow; AT_NUMB nMax; char szValue[32]; char *p; int nValue; int bAbcNumbers = ( nCtMode & CT_MODE_ABC_NUMBERS )...
false
false
false
false
true
1
do_out(cxxtools::MBState& state, const char* fromBegin, const char* fromEnd, const char*& fromNext, char* toBegin, char*...
false
false
false
false
false
0
plP_draw3d(PLINT x, PLINT y, PLFLT *c, PLINT j, PLINT move) { if (move) plP_movphy(x, y); else { if (c != NULL) plcol1(c[j-1]); plP_draphy(x, y); } }
false
false
false
false
false
0
find_r(double probability){ int count = 1; double r = ((double)rand()/(double)RAND_MAX); while (r <= probability){ count++; r = ((double)rand()/(double)RAND_MAX); } return count; }
false
false
false
false
false
0
find_kctl_name(struct hda_codec *codec, const char *name, int idx) { struct hda_gen_spec *spec = codec->spec; int i; for (i = 0; i < spec->kctls.used; i++) { struct snd_kcontrol_new *kctl = snd_array_elem(&spec->kctls, i); if (!strcmp(kctl->name, name) && kctl->index == idx) return true; } return false; }
false
false
false
false
false
0
selectLinkRulePi(const StringC &value, const Location &loc, const Vector<const AttributeList *> &linkAttributes, size_t &selected) { Boolean haveSelection = 0; size_t i; for (i = 0; i < linkAttributes.size(); i++) { const AttributeList &a = *linkAttributes[i]; Boolean matchValue = 0; ...
false
false
false
false
false
0
Iterm (void) { int i; for (i = 0; i < Ifuncn; i++) Tdels (root, Ifuncs[i].name); Ifuncn = 0; free (bufp), bufp = NULL, bufn = 0; }
false
false
false
false
false
0
itk_pre_drop_privileges(apr_pool_t *pool, server_rec *s) { #if HAVE_LIBCAP /* mod_unixd will drop down to a normal user. This means that even if an * attacker manage to execute code before setuid(), he/she cannot write to * files owned by uid 0, such as /etc/crontab. We'll need to keep our extra * pr...
false
false
false
false
false
0
coverart_set_cover_from_file() { gchar *filename; Track *track; Cover_Item *cover; GList *tracks; if (!coverart_window_valid()) return; filename = fileselection_get_cover_filename(); if (filename) { cover = g_ptr_array_index(cdwidget->cdcovers, IMG_MAIN); tracks = ...
false
false
false
false
false
0
pseudo_action_dummy(crm_graph_t * graph, crm_action_t * action) { static int fail = -1; if (fail < 0) { char *fail_s = getenv("PE_fail"); if (fail_s) { fail = crm_int_helper(fail_s, NULL); } else { fail = 0; } } crm_trace("Dummy event handler: a...
false
false
false
false
false
0
iwl_perform_ct_kill_task(struct iwl_priv *priv, bool stop) { if (stop) { IWL_DEBUG_TEMP(priv, "Stop all queues\n"); if (priv->mac80211_registered) ieee80211_stop_queues(priv->hw); IWL_DEBUG_TEMP(priv, "Schedule 5 seconds CT_KILL Timer\n"); mod_timer(&priv->thermal_throttle.ct_kill_exit_tm, ji...
false
false
false
false
false
0
bluetooth_agent_register(BluetoothAgent *agent) { BluetoothAgentPrivate *priv; GError *error = NULL; char *path; GVariant *r; g_return_val_if_fail (BLUETOOTH_IS_AGENT (agent), FALSE); priv = BLUETOOTH_AGENT_GET_PRIVATE (agent); priv->adapter = get_default_adapter (); if (priv->adapter == NULL) return FALS...
false
false
false
false
false
0
noise(noise_state_t *s) { int32_t val; int i; /* The central limit theorem says if you add a few random numbers together, the result starts to look Gaussian. Quantities above 7 give diminishing returns. Quantites above 20 are exceedingly Gaussian. */ val = 0; for (i = 0; i < s->quali...
false
false
false
false
false
0
__ecereMethod___ecereNameSpace__ecere__gfx3D__Mesh_LockPrimitiveGroup(struct __ecereNameSpace__ecere__gfx3D__Mesh * this, struct __ecereNameSpace__ecere__gfx3D__PrimitiveGroup * group) { unsigned int result = 0x0; if(this && group) { if(group->data) group->indices = ((unsigned short * (*)(struct __ecereNameSpace__ece...
false
false
false
false
false
0
newindex(long i, node *p) { /* assigns index i to node p */ while (p->index != i) { p->index = i; p = p->next; } }
false
false
false
false
false
0
build_path(char *target, char *mountpoint, const char *group, const char *file) { if (!target) return; strncpy(target, mountpoint, FILENAME_MAX); if (group) { strncat(target, "/", FILENAME_MAX - strlen(target)); strncat(target, group, FILENAME_MAX - strlen(target)); } if (file) { strncat(target, "/", FI...
false
true
false
false
false
1
HandleGroupInviteOpcode(WorldPacket& recv_data) { std::string membername; recv_data >> membername; // attempt add selected player // cheating if (!normalizePlayerName(membername)) { SendPartyResult(PARTY_OP_INVITE, membername, ERR_BAD_PLAYER_NAME_S); return; } Player* ...
false
false
false
false
false
0
ins_line(struct edwin *w) { u8 buf[40]; u8 buf2[40]; int y; memset(buf2, ' ', sizeof(buf2)); for (y = w->y; y < H; ++y) { xio_get_line(w->xw, y, buf); xio_put_line(w->xw, y, buf2); memcpy(buf2, buf, sizeof(buf2)); } }
false
true
false
false
false
1
bd_get_meta(BLURAY *bd) { if (!bd) { return NULL; } if (!bd->meta) { _meta_open(bd); } uint32_t psr_menu_lang = bd_psr_read(bd->regs, PSR_MENU_LANG); if (psr_menu_lang != 0 && psr_menu_lang != 0xffffff) { const char language_code[] = {(psr_menu_lang >> 16) & 0xff, (psr...
false
false
false
false
false
0
ok_disband_unit_window_callback(struct widget *pWidget) { if (Main.event.button.button == SDL_BUTTON_LEFT) { struct unit *pUnit = pWidget->data.unit; popdown_unit_disband_dlg(); /* enable city dlg */ enable_city_dlg_widgets(); free_city_units_lists(); request_unit_disband(pUnit); flush_dir...
false
false
false
false
false
0
field() const { XData::Field f = XDataField::field(); QStringList val; val << edit->text(); f.setValue(val); return f; }
false
false
false
false
false
0
L30__DO_DECL__cmptop(base0) register object *base0; { register object *base=vs_base; register object *sup=base+VM60; VC60 vs_check; {object V908; V908=(base[0]); vs_top=sup; goto TTL; TTL:; if(eql(STREF(object,(V908),32),((object)VV[96]))){ goto T3185;} goto T3184; goto T3185; T3185:; (((object)VV[181])->s.s...
false
false
false
false
false
0
unixpw_verify(char *user, char *pass) { int ok = 0; if (unixpw_cmd) { if (cmd_verify(user, pass)) { rfbLog("unixpw_verify: cmd_verify login for '%s'" " succeeded.\n", user); fflush(stderr); ok = 1; } else { rfbLog("unixpw_verify: cmd_verify login for '%s'" " failed.\n", user); fflush(...
false
false
false
false
false
0
finish_serif(StemData *slave, StemData *master, int lbase, int is_ball, InstrCt *ct) { int inner_pt, callargs[4]; struct stem_chunk *chunk; PointData *opd; int i; if (slave == NULL || master == NULL) return; inner_pt = ( lbase ) ? master->rightidx : master->leftidx; init_stem_edge(ct, slav...
false
false
false
false
false
0
countLines(FXint start,FXint end) const { register FXint p,nl=0; FXASSERT(0<=start && end<=length+1); p=start; while(p<end){ if(p>=length) return nl+1; if(getByte(p)=='\n') nl++; p++; } return nl; }
false
false
false
false
false
0
RefreshAll() { m_dirty = false; Refresh(); wxListHeaderWindow *headerWin = GetListCtrl()->m_headerWin; if ( headerWin && headerWin->m_dirty ) { headerWin->m_dirty = false; headerWin->Refresh(); } }
false
false
false
false
false
0
print ( std::ostream& o ) const { o << "Totally " << nTries << " subsumption tests was made\nAmong them "; unsigned int n = ( nTries ? nTries : 1 ); o << nPositives << " (" << (unsigned long)(nPositives*100/n) << "%) successfull\n"; o << "Besides that " << nCachedPositive << " successfull and " << nCachedNegative...
false
false
false
false
false
0
gtk_sctree_clear (GtkCMCList *clist) { GtkSCTree *sctree; cm_return_if_fail (clist != NULL); cm_return_if_fail (GTK_IS_SCTREE (clist)); sctree = GTK_SCTREE (clist); sctree->anchor_row = NULL; if (((GtkCMCListClass *)parent_class)->clear) (* ((GtkCMCListClass *)parent_class)->clear) (clist); }
false
false
false
false
false
0
fail_incompletable_stonith(crm_graph_t * graph) { GListPtr lpc = NULL; const char *task = NULL; xmlNode *last_action = NULL; if (graph == NULL) { return FALSE; } for (lpc = graph->synapses; lpc != NULL; lpc = lpc->next) { GListPtr lpc2 = NULL; synapse_t *synapse = (syna...
false
false
false
false
false
0
urpc_timed_out(cqueue_t *unused_cq, void *obj) { struct urpc_cb *ucb = obj; urpc_cb_check(ucb); (void) unused_cq; ucb->timeout_ev = NULL; if (GNET_PROPERTY(udp_debug)) { g_message("UDP [%s] RPC to %s timed out", ucb->what, host_addr_port_to_string(ucb->addr, ucb->port)); } (*ucb->cb)(URPC_TIMEOUT, ucb->...
false
false
false
false
false
0
rotate(int n, int perm) { int r = 0; int b; for(b = 0; b < global_dim; b++) r |= ((n >> b) & 1) << permutations[perm][b]; return r; }
false
false
false
false
false
0
partial_s_fetch(register partial_susp_type susp, snd_list_type snd_list) { int cnt = 0; /* how many samples computed */ int togo; int n; sample_block_type out; register sample_block_values_type out_ptr; register sample_block_values_type out_ptr_reg; register long phase_reg; register lo...
false
false
false
false
false
0
hashbuildCallback(Relation index, HeapTuple htup, Datum *values, bool *isnull, bool tupleIsAlive, void *state) { HashBuildState *buildstate = (HashBuildState *) state; IndexTuple itup; /* form an index tuple and point it at the heap tuple */ itup = index_form_tuple(RelationGetDescr(in...
false
false
false
false
false
0
showalign_MakeNonidentity(const AjPSeq ref, AjPSeq seq, ajint * const *sub, const AjPSeqCvt cvt, AjBool similarcase) { ajint i; ajint lenseq; ajint lenref; AjPStr sstr = NULL; char *s; const char *r; sstr = ajSeqGetSeqCopyS(seq); lenseq = ajSeqGetLen(seq); lenre...
false
false
false
false
false
0
get_constraint_for(int nt) { int result=0; multimap<int,int>::iterator mi; mi=constraints.find(nt); if (mi!=constraints.end()) result=mi->second; return result; }
false
false
false
false
false
0
key_addition32(const UINT32 *txt, UINT32 *keys, UINT32 *out) { int i; for (i=0; i<4; i++) out[i] = keys[i] ^ txt[i]; }
false
false
false
false
false
0
OnCloseEvent(AsyncSocket * socket, int err) { LogMultiline(level_, label_.c_str(), false, NULL, 0, hex_mode_, &lms_); LogMultiline(level_, label_.c_str(), true, NULL, 0, hex_mode_, &lms_); LOG_V(level_) << label_ << " Closed with error: " << err; AsyncSocketAdapter::OnCloseEvent(socket, err); }
false
false
false
false
false
0
adm1025_detect(struct i2c_client *client, struct i2c_board_info *info) { struct i2c_adapter *adapter = client->adapter; const char *name; u8 man_id, chip_id; if (!i2c_check_functionality(adapter, I2C_FUNC_SMBUS_BYTE_DATA)) return -ENODEV; /* Check for unused bits */ if ((i2c_smbus_read_byte_data(client, ...
false
false
false
false
false
0
Scm_VMMacroExpand(ScmObj expr, ScmObj env, int oncep) { ScmObj sym, op; ScmMacro *mac; if (!SCM_PAIRP(expr)) return expr; op = SCM_CAR(expr); if (SCM_MACROP(op)) { mac = SCM_MACRO(op); } else if (!SCM_SYMBOLP(op) && !SCM_IDENTIFIERP(op)) { return expr; } else { mac =...
false
false
false
false
false
0
on_comment(const xmlpp::string& text) { if(!m_context.empty()) m_context.top()->add_child_comment(text); else m_doc.add_comment(text); }
false
false
false
false
false
0
_e_winlist_warp_timer(void *data __UNUSED__) { if (_warp_to && _warp_timer) { double spd = e_config->winlist_warp_speed; _old_warp_x = _warp_x; _old_warp_y = _warp_y; _warp_x = (_warp_x * (1.0 - spd)) + (_warp_to_x * spd); _warp_y = (_warp_y * (1.0 - spd)) + (_warp_to_y ...
false
false
false
false
false
0
GMatrixEditSetColumnChoices(GGadget *g, int col, GTextInfo *ti) { GMatrixEdit *gme = (GMatrixEdit *) g; if ( gme->col_data[col].enum_vals!=NULL ) GMenuItemArrayFree(gme->col_data[col].enum_vals); if ( ti!=NULL ) gme->col_data[col].enum_vals = GMenuItemFromTI(ti, gme->col_data[col].me_type==me_enum ...
false
false
false
false
false
0
cscrew_create(object *obj) { int i; cscrew_info *cscrewp = NULL; weapon_info *wip; wip = &Weapon_info[Weapons[obj->instance].weapon_info_index]; for ( i = 0; i < MAX_CORKSCREW_MISSILES; i++ ) { cscrewp = &Corkscrew_missiles[i]; if ( !(cscrewp->flags & CS_FLAG_USED) ) { break; } } if ( i >= MAX_...
false
false
false
false
false
0
packDown() { convert(); int iPut=0; int iLast=0; for (int jColumn=0;jColumn<static_cast<int> (numberIntegers_);jColumn++) { int j; for ( j=iLast;j<toOne_[jColumn];j++) { int kColumn=sequenceInCliqueEntry(fixEntry_[j]); if (kColumn<numberIntegers_) fixEntry_[iPut++]=fixEntry_[j]; } ...
false
false
false
false
false
0
ReadToBuffer(int nfd, char *pszBuffer, int nBufSize) { int nPos = 0; /* current character position */ int attempts = 0; char *pBuf = pszBuffer; int rc = 0; int sanity = 0; while(attempts < nBufSize && sanity < 100) { if (bVerbose) fprintf(stderr, "read attempts %i timeout %ius ",attemp...
false
false
false
false
false
0