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
vq_req_put(struct c2_dev *c2dev, struct c2_vq_req *r) { if (atomic_dec_and_test(&r->refcnt)) { if (r->reply_msg != 0) vq_repbuf_free(c2dev, (void *) (unsigned long) r->reply_msg); kfree(r); } }
false
false
false
false
false
0
aa_setup_default_label(void) { struct aa_profile *profile = aa_alloc_profile("default", NULL, GFP_KERNEL); if (!profile) return NULL; /* the default profile pretends to be unconfined until it is replaced */ profile->label.flags |= FLAG_IX_ON_NAME_ERROR | FLAG_UNCONFINED; profile->mode = APPARMOR_UNC...
false
false
false
false
false
0
run() { QString query = m_queryMaker->query(); QStringList result = m_queryMaker->runQuery( query ); if( !m_aborted ) m_queryMaker->handleResult( result ); setFinished( !m_aborted ); }
false
false
false
false
false
0
message_free (message_ty *mp) { size_t j; free ((char *) mp->msgid); if (mp->msgid_plural != NULL) free ((char *) mp->msgid_plural); free ((char *) mp->msgstr); if (mp->comment != NULL) string_list_free (mp->comment); if (mp->comment_dot != NULL) string_list_free (mp->comment_dot); for (j = 0...
false
false
false
false
false
0
zmod_poly_isirreducible(zmod_poly_t f) { //printf("input = "); zmod_poly_print(f); printf("\n"); //see if it is non linear if (zmod_poly_length(f) > 2) { unsigned long p = zmod_poly_modulus(f); unsigned long n = zmod_poly_degree(f); //Some polynomials we will need ...
false
false
false
false
false
0
ddf_WriteCompletionStatus(FILE *f, ddf_ConePtr cone) { if (cone->Iteration<cone->m && cone->CompStatus==ddf_AllFound) { fprintf(f,"*Computation completed at Iteration %4ld.\n", cone->Iteration); } if (cone->CompStatus == ddf_RegionEmpty) { fprintf(f,"*Computation completed at Iteration %4ld because the r...
false
false
false
false
false
0
mgopengl_taggedappearance(const void *tag) { struct mgastk *astk = (struct mgastk *)tag; Appearance *ap = &astk->ap; LmLighting *lm = &astk->lighting; mg_setappearance(ap, 0); if (lm->valid) { glCallList(_mgopenglc->light_lists[astk->light_seq]); } glMatrixMode(GL_MODELVIEW); glPushMatrix(); gl...
false
false
false
false
false
0
synchnet(curl_socket_t f /* socket to flush */) { #if defined(HAVE_IOCTLSOCKET) unsigned long i; #else int i; #endif int j = 0; char rbuf[PKTSIZE]; srvr_sockaddr_union_t fromaddr; curl_socklen_t fromaddrlen; for (;;) { #if defined(HAVE_IOCTLSOCKET) (void) ioctlsocket(f, FIONREAD, &i); #else (voi...
true
true
false
false
false
1
sentinelRoleCommand(redisClient *c) { dictIterator *di; dictEntry *de; addReplyMultiBulkLen(c,2); addReplyBulkCBuffer(c,"sentinel",8); addReplyMultiBulkLen(c,dictSize(sentinel.masters)); di = dictGetIterator(sentinel.masters); while((de = dictNext(di)) != NULL) { sentinelRedisInsta...
false
false
false
false
false
0
outputElementName(unsigned long groveIndex, const Char *idData, size_t idSize) { if (groveIndex) os() << groveIndex << '.'; os() << Data(idData, idSize); }
false
false
false
false
false
0
__stmpe_block_write(struct stmpe *stmpe, u8 reg, u8 length, const u8 *values) { int ret; dev_vdbg(stmpe->dev, "wr: regs %#x (%d)\n", reg, length); stmpe_dump_bytes("stmpe wr: ", values, length); ret = stmpe->ci->write_block(stmpe, reg, length, values); if (ret < 0) dev_err(stmpe->dev, "failed to write regs ...
false
false
false
false
false
0
acl_clean_aclEval_context ( aclEvalContext *clean_me, int scrub_only ) { int i; /* Copy the attr info */ for (i=0; i < clean_me->acle_numof_attrs; i++ ) { char *a_name = clean_me->acle_attrEval[i].attrEval_name; if ( a_name && !scrub_only) { slapi_ch_free ( (void **) &a_name ); clean_me->acle_attrEval...
false
false
false
false
false
0
mpeg1_encode_motion(MpegEncContext *s, int val, int f_or_b_code) { int code, bit_size, l, bits, range, sign; if (val == 0) { /* zero vector */ code = 0; put_bits(&s->pb, ff_mpeg12_mbMotionVectorTable[0][1], ff_mpeg12_mbMotionVectorTable[0][0]); } el...
false
false
false
false
false
0
ParseParams(uint32_t len, uint8_t *data, TParamList &pl) { unsigned int n = 0; unsigned int i = 4; while (i < len) { unsigned int param_len = data[i]; switch (param_len & 0xC0) { case 0x00: case 0x80: param_len &= 0x3F; break; case 0x40: param_len = (param_len & 0x3F) * 4; break; case...
false
false
false
false
false
0
main() { int rw[2]; struct pollfd fd; if (pipe(rw) < 0) return 1; fd.fd = rw[0]; fd.events = POLLIN; fd.revents = 0; if (poll(&fd, 1, 0) < 0 || fd.revents != 0) return 1; if (write(rw[1], "x", 1) != 1) return 1; if (poll(&fd, 1, 0) < 0 || fd.revents == 0) return 1; return 0; }
false
false
false
false
false
0
buildfill(Symbol* tvasym) { Datalist* filler = builddatalist(0); ASSERT(tvasym->objectclass == NC_VAR || tvasym->objectclass == NC_TYPE || tvasym->objectclass == NC_ATT); if(tvasym->objectclass == NC_VAR) { if(tvasym->typ.dimset.ndims > 0) { fillarray(tvasym->typ.basetype,&tvasym->typ.dimset,0...
false
false
false
false
false
0
mailpop3_dele(mailpop3 * f, unsigned int indx) { char command[POP3_STRING_SIZE]; struct mailpop3_msg_info * msginfo; char * response; int r; if (f->pop3_state != POP3_STATE_TRANSACTION) return MAILPOP3_ERROR_BAD_STATE; msginfo = find_msg(f, indx); if (msginfo == NULL) { f->pop3_response = NULL;...
false
false
false
false
false
0
brasero_task_send_stop_signal (BraseroTask *task, BraseroBurnResult retval, GError **error) { BraseroTaskItem *item; BraseroTaskPrivate *priv; GError *local_error = NULL; BraseroBurnResult result = retval; priv = BRASERO_TASK_PRIVATE (task); item = priv->leader; while (brasero_task_item_pre...
false
false
false
false
false
0
unlinkExceptionRegistration(IRBuilder<> &Builder) { // Clone Link into the current BB for better address mode folding. if (auto *GEP = dyn_cast<GetElementPtrInst>(Link)) { GEP = cast<GetElementPtrInst>(GEP->clone()); Builder.Insert(GEP); Link = GEP; } Type *LinkTy = getEHLinkRegistrationType(); //...
false
false
false
false
false
0
spool_context_search_type(const lListElem *context, const sge_object_type object_type) { lListElem *ep; /* search fitting rule */ ep = lGetElemUlong(lGetList(context, SPC_types), SPT_type, object_type); /* if no specific rule is found, return default rule */ if (ep == NULL) {...
false
false
false
false
false
0
mcr1_render_sprites(struct mame_bitmap *bitmap) { int offs; /* first render them raw */ mcr12_update_sprites(); /* for every character in the Video RAM, check if it has been modified */ /* since last time and update it accordingly. */ for (offs = videoram_size - 1; offs >= 0; offs--) if (dirtybuffer...
false
false
false
false
false
0
Read() { RefreshAddr = ppur.get_ntread(); nt = CALL_PPUREAD(RefreshAddr); runppu(kFetchTime); RefreshAddr = ppur.get_atread(); at = CALL_PPUREAD(RefreshAddr); //modify at to get appropriate palette shift if (ppur.vt & 2) at >>= 4; if (ppur.ht & 2) at >>= 2; at &= 0x03; at <<=...
false
false
false
false
false
0
makefnam(rawfn, template, result) char *rawfn; /* the original file name */ char *template; /* the template data */ char *result; /* where to place the result */ { char et[17], er[17], rawbuf[STRLEN], *i; *rawbuf = 0; strcpy(rawbuf, rawfn); #if _MTS i = rawbuf; if (rawb...
false
false
false
false
false
0
SplitV(const wxImage &src, wxColour magicColor) { ImageArray result; int width = src.GetWidth(); int height = src.GetHeight(); unsigned char *data = src.GetData(); unsigned char *ptr = data; unsigned char magicRed = magicColor.Red(); unsigned char magicGreen = magicColor.Green(); unsigned char m...
false
false
false
false
false
0
flickrApiCall(const QString & method, const KeyValueList & params) { // build URL with method+apikey+params QUrl url("http://api.flickr.com/services/rest/"); KeyValueList fullList; fullList.append(KeyValue("method", method)); fullList.append(KeyValue("api_key", m_apiKey)); #if QT_VERSION >= 0x040500...
false
false
false
false
false
0
get_turret_cam_pos(camera *cam, vec3d *pos) { object_h obj(cam->get_object_host()); if(!obj.IsValid()) return; ship* shipp = &Ships[cam->get_object_host()->instance]; ship_subsys* ssp = GET_FIRST(&shipp->subsys_list); while ( ssp != END_OF_LIST( &shipp->subsys_list ) ) { if(ssp->system_info->subobj_num == cam...
false
false
false
false
false
0
getNofConnections(int index) { if ( index < 0 || index >= totalCount ) return 0; return nofConnections[index]; }
false
false
false
false
false
0
lua_iscfunction (lua_State *L, int idx) { StkId o = luaA_indexAcceptable(L, idx); return (o == NULL) ? 0 : iscfunction(o); }
false
false
false
false
false
0
dvb_media_factory_real_gen_key (GstRTSPMediaFactory* base, GstRTSPUrl* url) { DVBMediaFactory * self; gchar* result = NULL; GstRTSPUrl* _tmp0_ = NULL; const gchar* _tmp1_ = NULL; gchar* _tmp2_ = NULL; self = (DVBMediaFactory*) base; g_return_val_if_fail (url != NULL, NULL); _tmp0_ = url; _tmp1_ = _tmp0_->abspa...
false
false
false
false
false
0
mm_read_banner(FILE * f, MM_typecode * matcode) { char line[MM_MAX_LINE_LENGTH]; char banner[MM_MAX_TOKEN_LENGTH]; char mtx[MM_MAX_TOKEN_LENGTH]; char crd[MM_MAX_TOKEN_LENGTH]; char data_type[MM_MAX_TOKEN_LENGTH]; char storage_scheme[MM_MAX_TOKEN_LENGTH]; char *p; mm_clear_typecode(mat...
true
true
true
false
true
1
table_attach (GtkWidget *table, GtkWidget *child, gint pos, gint row, GtkSizeGroup *group) { gtk_table_attach (GTK_TABLE (table), child, pos, pos+1, row, row +1, pos ? 0 : GTK_EXPAND | GTK_FILL, GTK_EXPAND | GTK_FILL, 3, 1); if (pos) gtk_size_group_add_widget (group, chil...
false
false
false
false
false
0
spin_line_width_changed_value(GtkSpinButton *spinbutton, gpointer user_data) { if(user_data && G_IS_OBJECT(user_data)) { GtkWidget* xyplot = GTK_WIDGET(user_data); XYPlotData* data = g_object_get_data(G_OBJECT (spinbutton), "CurentData"); g_return_if_fail (GABEDIT_IS_XYPLOT (xyplot)); if(data) data->line_wi...
false
false
false
false
false
0
messaging_menu_app_remove_source (MessagingMenuApp *app, const gchar *source_id) { g_return_if_fail (MESSAGING_MENU_IS_APP (app)); g_return_if_fail (source_id != NULL); if (messaging_menu_app_remove_source_internal (app, source_id)) indicator_messages_application_emit_s...
false
false
false
false
false
0
gsb_data_account_get_bet_select_label ( gint account_number, gint origine ) { struct_account *account; account = gsb_data_account_get_structure ( account_number ); if (!account ) return 0; switch ( origine ) { case SPP_ORIGIN_TRANSACTION: return account -> bet_select_tran...
false
false
false
false
false
0
disable_pool(struct pool *pool) { if (pool->enabled == POOL_ENABLED) enabled_pools--; pool->enabled = POOL_DISABLED; }
false
false
false
false
false
0
help (int argc, char *argv[]) { register Command *c; if (argc == 1) { printf ("Commands may be abbreviated. Commands are:\n\n"); for (c = cmdtab; c->name; c++) if (c->help) { printf ("%-*s\t%s\n", (int) HELPINDENT, c->name, c->help); } return 0; } while (--argc > 0) { ...
false
false
false
false
false
0
findCenterOfMass(SMolecule* mol) { gdouble totalMass = 0; gdouble comX = 0; gdouble comY = 0; gdouble comZ = 0; gint i; for(i = 0; i<mol->size(mol); i++) { SAtom* a = mol->get(mol,i); gdouble m = a->getMass(a); comX += a->getPosition(a).x * m; comY += a->getPosition(a).y * m; comZ += a->getPosition(a)....
false
false
false
false
false
0
ipa_lower_emutls (void) { struct varpool_node *var; struct cgraph_node *func; bool any_aliases = false; tree ctor_body = NULL; unsigned int i, n_tls; tls_vars = varpool_node_set_new (); /* Examine all global variables for TLS variables. */ for (var = varpool_nodes; var ; var = var->next) if (DECL...
false
false
false
false
false
0
setConfirmOverwrite(bool enable) { if (operationMode() == KFileDialog::Saving) { d->w->setConfirmOverwrite(enable); } }
false
false
false
false
false
0
unexpected(keyword_id_t innerblock, keyword_id_t outerblock) { /* THEN and DO blocks don't start with a /then or /do if they belong to a * /if () or /while (), so "THEN block" and "DO block" would be confusing * to user. */ switch (outerblock) { case THEN: eprintf("unexpected /%s in IF body", key...
false
false
false
false
false
0
poreFIFO(){ int i ; if (Findex2 <= 0 ) return 0; Findex1 = Findex2 ; Findex2 = 0 ; for (i = 0 ;i < Findex1 ; i++){ (FIFO1+i )->altitude = (FIFO2+i ) ->altitude ; (FIFO1+i )->x = (FIFO2+i ) ->x; (FIFO1+i )->y = (FIFO2+i ) ->y; (FIFO1+i )->prev = (FIFO2+i ) ->prev; (FIFO1+i )->next = (FIFO2+i )...
false
false
false
false
false
0
gt_newSpecialsRankLookup(const GtEncseq *encseq, GtReadmode readmode, unsigned sampleIntervalLog2) { struct specialsRankLookup *ranker; unsigned long seqLastPos, seqLen; unsigned long sampleInterval = ((unsigned long)1) << sampleIntervalLog2; gt_assert(encseq); gt_assert(sampleInterva...
false
false
false
false
false
0
FillOutOrigStruct( ORIG_ATOM_DATA *orig_inp_data, ORIG_STRUCT *pOrigStruct, STRUCT_DATA *sd ) { char szBuf[ORIG_STR_BUFLEN]; int i, len, len_coord, len_atoms, len_bonds; /* coordinates */ len_coord = i = 0; if (orig_inp_data->szCoord) { while ( len = WriteOrigCoord( orig_inp_data->num_inp...
false
false
false
false
false
0
add_auth_lifetime(private_ike_auth_lifetime_t *this, message_t *message) { chunk_t chunk; u_int32_t lifetime; lifetime = this->ike_sa->get_statistic(this->ike_sa, STAT_REAUTH); if (lifetime) { lifetime -= time_monotonic(NULL); chunk = chunk_from_thing(lifetime); *(u_int32_t*)chunk.ptr = htonl(lifetime); m...
false
false
false
false
false
0
get_nid_path(struct hda_codec *codec, hda_nid_t from_nid, hda_nid_t to_nid, int anchor_nid) { struct hda_gen_spec *spec = codec->spec; int i; for (i = 0; i < spec->paths.used; i++) { struct nid_path *path = snd_array_elem(&spec->paths, i); if (path->depth <= 0) continue; if ((!from_nid ||...
false
false
false
false
false
0
activate_help (GSimpleAction *action, GVariant *parameter, gpointer user_data) { GApplication *application = user_data; GList *windows; windows = gtk_application_get_windows (GTK_APPLICATION (application)); if (windows != NULL) activate_action_manual (NULL, windows...
false
false
false
false
false
0
ProcessImpliedCondition(BasicBlock *BB) { auto *BI = dyn_cast<BranchInst>(BB->getTerminator()); if (!BI || !BI->isConditional()) return false; Value *Cond = BI->getCondition(); BasicBlock *CurrentBB = BB; BasicBlock *CurrentPred = BB->getSinglePredecessor(); unsigned Iter = 0; auto &DL = BB->getModu...
false
false
false
false
false
0
qed_configure_filter_ucast(struct qed_dev *cdev, struct qed_filter_ucast_params *params) { struct qed_filter_ucast ucast; if (!params->vlan_valid && !params->mac_valid) { DP_NOTICE( cdev, "Tried configuring a unicast filter, but both MAC and VLAN are not set\n"); return -EINVAL; } memset(&ucas...
false
false
false
false
false
0
cgroup_strerror(int code) { if (code == ECGOTHER) return strerror_r(cgroup_get_last_errno(), errtext, MAXLEN); return cgroup_strerror_codes[code % ECGROUPNOTCOMPILED]; }
false
false
false
false
false
0
tack_push(tack_t *stack, void *data) { if (tack_grow(stack, 0)) { stack->data[stack->len++] = data; } }
false
false
false
false
false
0
inode_has_replica(struct inode *inode, struct host *spool_host) { struct file_copy *copy = inode_get_file_copy(inode, spool_host); if (copy == NULL) return (0); return (FILE_COPY_IS_VALID(copy)); }
false
false
false
false
false
0
processKeyInFocus(const Key &key) { if (key == key.DEL) { myParent->del(myPos); return true; } if (key == key_UP) { myParent->moveup(myPos); return true; } if (key == key_DOWN) { myParent->movedn(myPos); return true; } return CursesButton::processKeyInFocus(key); }
false
false
false
false
false
0
max98090_pll_work(struct work_struct *work) { struct max98090_priv *max98090 = container_of(work, struct max98090_priv, pll_work); struct snd_soc_codec *codec = max98090->codec; if (!snd_soc_codec_is_active(codec)) return; dev_info(codec->dev, "PLL unlocked\n"); /* Toggle shutdown OFF then ON */ snd_soc_up...
false
false
false
false
false
0
xbaeSelectCell(mw, row, column) XbaeMatrixWidget mw; int row, column; { Boolean visible; if (row >= mw->matrix.rows || row < 0 || column >= mw->matrix.columns || column < 0) { XtAppWarningMsg( XtWidgetToApplicationContext((Widget) mw), "selectCell", "badIndex", "Xbae...
false
false
false
false
false
0
setState(int index, int bits, bool set) { if (set) partitiondlg[index].state |= bits; else partitiondlg[index].state &= ~bits; }
false
false
false
false
false
0
brasero_drive_is_door_open (BraseroDrive *drive) { const gchar *device; BraseroDrivePrivate *priv; BraseroDeviceHandle *handle; BraseroScsiMechStatusHdr hdr; g_return_val_if_fail (drive != NULL, FALSE); g_return_val_if_fail (BRASERO_IS_DRIVE (drive), FALSE); priv = BRASERO_DRIVE_PRIVATE (drive); if (!priv->de...
false
false
false
false
false
0
getCellAtPos(PT_DocPosition pos) const { bool bEOL = false; UT_uint32 iPointHeight; UT_sint32 xPoint, yPoint, xPoint2, yPoint2; bool bDirection; fl_BlockLayout* pBlock; fp_Run* pRun; _findPositionCoords(pos, bEOL, xPoint, yPoint, xPoint2, yPoint2, iPointHeight, bDirection, &pBlock, &pRun); fp_CellContainer * pC...
false
false
false
false
false
0
seista_parse_cell(const gchar *line, gdouble scale, struct model_pak *model) { gint num_tokens; gchar **buff; g_assert(line != NULL); buff = tokenize(line, &num_tokens); if (num_tokens > 5) { model->pbc[0] = scale * str_to_float(*(buff+0)); model->pbc[1] = scale * str_to_float(*(buff+1)); model->pbc[2] = scal...
false
false
false
false
false
0
compressRLE( int init_bits, CxFile* outfile) { g_init_bits = init_bits; g_outfile = outfile; struct_RLE rle; rle.code_clear = 1 << (init_bits - 1); rle.code_eof = rle.code_clear + 1; rle.rl_basecode = rle.code_eof + 1; rle.out_bump_init = (1 << (init_bits - 1)) - 1; rle.out_clear_init = (init_bits <= 3) ? 9 : ...
false
false
false
false
false
0
s35390a_set_alarm(struct i2c_client *client, struct rtc_wkalrm *alm) { struct s35390a *s35390a = i2c_get_clientdata(client); char buf[3], sts = 0; int err, i; dev_dbg(&client->dev, "%s: alm is secs=%d, mins=%d, hours=%d mday=%d, "\ "mon=%d, year=%d, wday=%d\n", __func__, alm->time.tm_sec, alm->time.tm_min, alm...
false
false
false
false
false
0
TABAdjustFilenameExtension(char *pszFname) { VSIStatBuf sStatBuf; int i; /*----------------------------------------------------------------- * First try using filename as provided *----------------------------------------------------------------*/ if (VSIStat(pszFname, &sStatBuf)...
false
false
false
false
false
0
evas_object_intercept_call_resize(Evas_Object *obj, Evas_Coord w, Evas_Coord h) { int ret; if (!obj->interceptors) return 0; if (obj->intercepted) return 0; obj->intercepted = EINA_TRUE; ret = !!(obj->interceptors->resize.func); if (ret) obj->interceptors->resize.func(obj->interceptors->resize.d...
false
false
false
false
false
0
get_zc_ip_address(PyObject *self, PyObject *args) { char *hn; char ip[HPMUD_BUFFER_SIZE]; enum HPMUD_RESULT result = HPMUD_R_OK; if (!PyArg_ParseTuple(args, "s", &hn)) return NULL; Py_BEGIN_ALLOW_THREADS result = hpmud_mdns_lookup(hn, HPMUD_MDNS_TIMEOUT, ip); Py_END_ALLOW_THREA...
false
false
false
false
false
0
downClicked() { if (fields->currentItem()) { int index = fields->invisibleRootItem()->indexOfChild(fields->currentItem()); if (index == (fields->invisibleRootItem()->childCount()-1)) return; // its at the bottom already QWidget *button = fields->itemWidget(fields->currentItem(),2); ...
false
false
false
false
false
0
ProcessOne(int count, WaveTrack * track, sampleCount start, sampleCount len) { sampleCount s = 0; sampleCount blockSize = (sampleCount) (track->GetRate() * delay); //do nothing if the delay is less than 1 sample or greater than //the length of the selection if (blockSize <...
false
false
false
false
false
0
setIndices(unsigned short count, const unsigned short* indices) { delete[] fIndices; if (count == 0) { fIndices = NULL; return; } fIndices = new unsigned short[count]; memcpy(fIndices, indices, count * sizeof(unsigned short)); }
false
false
false
false
false
0
set_pwm(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) { struct pwm_fan_ctx *ctx = dev_get_drvdata(dev); unsigned long pwm; int ret; if (kstrtoul(buf, 10, &pwm) || pwm > MAX_PWM) return -EINVAL; ret = __set_pwm(ctx, pwm); if (ret) return ret; pwm_fan_update_stat...
false
false
false
false
false
0
csv_import_validate_amount ( gchar * string ) { g_return_val_if_fail ( string, FALSE ); while ( *string ) { if ( g_ascii_isalpha ( * string ) ) { return FALSE; } string++; } return TRUE; }
false
false
false
false
false
0
ds_prependc(Ds *ds, int ch) { int st; size_t len; if (ds_len(ds) == 0) st = (ds_appendc(ds, ch) == 0 ? 0 : -1); else { char c; c = (char) ch; st = (ds_insertb(ds, &c, 1, 0) == NULL ? -1 : 0); } return(st); }
false
false
false
false
false
0
write_types_process_field (type_p f, const struct walk_type_data *d) { const struct write_types_data *wtd; const char *cast = d->needs_cast_p ? "(void *)" : ""; wtd = (const struct write_types_data *) d->cookie; switch (f->kind) { case TYPE_POINTER: oprintf (d->of, "%*s%s (%s%s", d->indent, "", ...
false
false
false
false
false
0
ftio_map_load(struct ftio *ftio, char *fname, u_int32 ip) { /* load the map */ if (!(ftio->fth.ftmap = ftmap_load(fname, ip))) { fterr_warnx("ftmap_load(): failed"); return -1; } ftio->fth.fields |= FT_FIELD_IF_NAME | FT_FIELD_IF_ALIAS; return 0; }
false
false
false
false
false
0
option_dialog_option_str_set(struct option *poption, const char *string) { if (NULL != option_str_values(poption)) { gtk_entry_set_text(GTK_ENTRY(gtk_bin_get_child(GTK_BIN (option_get_gui_data(poption)))), string); } else { gtk_entry_set...
false
false
false
false
false
0
base_form_noun(const string & s) { string ex = morphdic.BaseFormNoun(s); if (ex != "") return ex; int len = s.size(); if (len > 1) { string suf1 = s.substr(len - 1); if (suf1 == "s") { if (morphdic.LookUpDicNoun(s.substr(0, len - 1))) return s.substr(0, len - 1); // if (morphdic.LookUp...
false
false
false
false
false
0
g_mime_filter_reset (GMimeFilter *filter) { g_return_if_fail (GMIME_IS_FILTER (filter)); GMIME_FILTER_GET_CLASS (filter)->reset (filter); /* could free some buffers, if they are really big? */ filter->backlen = 0; }
false
false
false
true
false
1
gt_seqabstract_reinit_encseq(GtSeqabstract *sa, const GtEncseq *encseq, unsigned long len, unsigned long offset) { sa->cmpcharbychar = gt_encseq_has_twobitencoding(encseq) ? false : true; sa->isptr = false; sa->l...
false
false
false
false
false
0
MakeData( int nSize ) { if( poType == NULL ) { poType = psHFA->poDictionary->FindType( szType ); if( poType == NULL ) return NULL; } if( nSize == 0 && poType->nBytes > 0 ) nSize = poType->nBytes; if( (int) nDataSize < nSize && nSize > 0 ) { pabyData...
false
false
false
false
false
0
set_scope_loc(struct itree_t *itp, struct task_t *tskp, int32 *ref_ifi, int32 *ref_lini) { struct mod_t *mdp; if (tskp != NULL) { *ref_ifi = (int32) tskp->tskst->stfnam_ind; *ref_lini = tskp->tskst->stlin_cnt; return; } mdp = itp->itip->imsym->el.emdp; if (mdp->ialst == NULL) { __ia_err(1484, ...
false
false
false
false
false
0
_step_abort(slurm_step_ctx_t *ctx) { struct step_launch_state *sls = ctx->launch_state; if (!sls->abort_action_taken) { slurm_kill_job_step(ctx->job_id, ctx->step_resp->job_step_id, SIGKILL); sls->abort_action_taken = true; } }
false
false
false
false
false
0
sendByte(GLEBYTE byte) { m_components[m_index++] = byte; if (m_index == m_nbComponents) { unsigned int value = ((unsigned int)m_components[0]) << 16 | ((unsigned int)m_components[1]) << 8 | ((unsigned int)m_components[2]); if (m_nbComponents == 4) { val...
false
false
false
false
false
0
__hime_enc_mem(u_char *p, int n, HIME_PASSWD *passwd, u_int *seed) { int i; for(i=0; i < n; i++) { int v = __hime_rand__(seed) % __HIME_PASSWD_N_; p[i]^=passwd->passwd[v]; } }
false
false
false
false
false
0
vfs_is_not_empty (NautilusDirectory *directory) { g_assert (NAUTILUS_IS_VFS_DIRECTORY (directory)); g_assert (nautilus_directory_is_anyone_monitoring_file_list (directory)); return directory->details->file_list != NULL; }
false
false
false
false
false
0
main(int argc, char * argv[]) { std::string all_A = "AAAAAAAAAAAAAAAAAAAA"; std::string all_T = "TTTTTTTTTTTTTTTTTTTT"; printf("%s x %s x %s\n", all_A.c_str(), all_T.c_str(), all_T.c_str()); test_3way(all_A, all_T, all_T); printf("%s x %s x %s\n", all_A.c_str(), all_T.c_str(), all_A.c_str()); test_3way(all...
false
false
false
false
false
0
kasumi_ecb_decrypt(const unsigned char *ct, unsigned char *pt, symmetric_key *skey) { ulong32 left, right, temp; int n; LTC_ARGCHK(pt != NULL); LTC_ARGCHK(ct != NULL); LTC_ARGCHK(skey != NULL); LOAD32H(left, ct); LOAD32H(right, ct+4); for (n = 7; n >= 0; ) { temp = FO(righ...
false
false
false
false
false
0
cw1200_event_handler(struct work_struct *work) { struct cw1200_common *priv = container_of(work, struct cw1200_common, event_handler); struct cw1200_wsm_event *event; LIST_HEAD(list); spin_lock(&priv->event_queue_lock); list_splice_init(&priv->event_queue, &list); spin_unlock(&priv->event_queue_lock); list_f...
false
false
false
false
false
0
setLooping(bool value) { // set the value of property looping parent()->setProperty("looping", value); }
false
false
false
false
false
0
_single_process_db_open(const char *db_path) { struct single_process_db *db; db = calloc(1, sizeof(*db)); if (!db) { perror("calloc"); return NULL; } if (sqlite3_open(db_path, &db->handle) != SQLITE_OK) { fprintf(stderr, "ERROR: could not open DB \"%s\": %s\n", ...
false
false
false
false
false
0
vrf_finish_output6(struct net *net, struct sock *sk, struct sk_buff *skb) { struct dst_entry *dst = skb_dst(skb); struct net_device *dev = dst->dev; struct neighbour *neigh; struct in6_addr *nexthop; int ret; nf_reset(skb); skb->protocol = htons(ETH_P_IPV6); skb->dev = dev; rcu_read_lock_bh(); nex...
false
false
false
false
false
0
ut_um_expired(cqueue_t *unused_cq, void *obj) { struct ut_msg *um = obj; ut_msg_check(um); g_assert(um->expire_ev != NULL); (void) unused_cq; um->expire_ev = NULL; /* Indicates that callback has fired */ if (tx_ut_debugging(TX_UT_DBG_MSG | TX_UT_DBG_TIMEOUT, um->to)) { g_debug("TX UT[%s]: %s: message for %...
false
false
false
false
false
0
statement_execute_select(const Glib::ustring& sql, StatementModelUsage model_usage) { Glib::RefPtr<const Statement> stmt; Glib::RefPtr<SqlParser> parser = create_parser(); if(parser) { stmt = parser->parse_string(sql); } if(!stmt) return Glib::RefPtr<DataModel>(); GError* gerror = 0; Glib::Ref...
false
false
false
false
false
0
ReadDBSubjectEntry(NSSLOWCERTCertDBHandle *handle, SECItem *derSubject) { PLArenaPool *arena = NULL; PLArenaPool *tmparena = NULL; certDBEntrySubject *entry; SECItem dbkey; SECItem dbentry; SECStatus rv; arena = PORT_NewArena(DER_DEFAULT_CHUNKSIZE); if ( arena == NULL ) { PORT_SetE...
false
false
false
false
false
0
fastSelectInstruction(const Instruction *I) { switch (I->getOpcode()) { case Instruction::Load: return SelectLoad(I); case Instruction::Store: return SelectStore(I); case Instruction::Br: return SelectBranch(I); case Instruction::IndirectBr: return SelectIndirectBr(I); cas...
false
false
false
false
false
0
RotateOrthTest(PIX *pixs, l_int32 *pcount, L_REGPARAMS *rp) { l_int32 zero, count; PIX *pixt, *pixd; PIXCMAP *cmap; cmap = pixGetColormap(pixs); /* Test 4 successive 90 degree rotations */ pixt = pixRotate90(pixs, 1); pixd = pixRotate90(pixt, 1); p...
false
false
false
false
false
0
int3400_thermal_remove(struct platform_device *pdev) { struct int3400_thermal_priv *priv = platform_get_drvdata(pdev); if (!priv->rel_misc_dev_res) acpi_thermal_rel_misc_device_remove(priv->adev->handle); sysfs_remove_group(&pdev->dev.kobj, &uuid_attribute_group); thermal_zone_device_unregister(priv->thermal); ...
false
false
false
false
false
0
ssh_config_get_yesno(char **str, int notfound) { const char *p; p = ssh_config_get_str_tok(str, NULL); if (p == NULL) { return notfound; } if (strncasecmp(p, "yes", 3) == 0) { return 1; } else if (strncasecmp(p, "no", 2) == 0) { return 0; } return notfound; }
false
false
false
false
false
0
addr_to_parts (tree type, aff_tree *addr, tree iv_cand, tree base_hint, struct mem_address *parts, bool speed) { tree part; unsigned i; parts->symbol = NULL_TREE; parts->base = NULL_TREE; parts->index = NULL_TREE; parts->step = NULL_TREE; if (!double_int_zero_p (addr->offset)) ...
false
false
false
false
false
0
box2(int x, int y, int w, int h) { move(y,x); echochar(ACS_ULCORNER); for (int i = x; i < x+w-2; ++i) echochar(ACS_HLINE); echochar(ACS_URCORNER); for (int j = y+1; j < y+h-1; ++j) { move(j,x); echochar(ACS_VLINE); move(j,x+w-1); echochar(ACS_VLINE); } move(y+h-1,x); echochar(ACS_LLCORNER); for (int i = ...
false
false
false
false
false
0
deactivate_edge(graph *g, edge *e){ /* releases all associated intersections */ if(e->active){ g->active_intersections -= release_paired_intersection_list(e); g->num_edges_active--; e->active=0; } }
false
false
false
false
false
0
scanBlockchainForTx_FromScratch(vector<BtcWallet*> walletVect) { PDEBUG("Scanning blockchain for tx, from scratch"); ///// LOOP OVER ALL HEADERS //// for(uint32_t h=0; h<headersByHeight_.size(); h++) { BlockHeaderRef & bhr = *(headersByHeight_[h]); vector<TxRef*> const & txlist = bhr.getTxRefPtr...
false
false
false
false
false
0
select_g_select_nodeinfo_pack(dynamic_plugin_data_t *nodeinfo, Buf buffer, uint16_t protocol_version) { void *data = NULL; uint32_t plugin_id; if (slurm_select_init(0) < 0) return SLURM_ERROR; if (nodeinfo) { data = nodeinfo->data; plugin_id = nodeinfo->plugin_id; } else plugin_id = select_co...
false
false
false
false
false
0
o_motd_display(struct Luser *lptr, int ac, char **av, int sockfd) { o_RecordCommand(sockfd, "MOTD DISPLAY"); if (!Network->LogonNewsFile.Contents) { os_notice(lptr, sockfd, "There is nothing in MOTD"); return; } SendMessageFile(lptr, &Network->LogonNewsFile); }
false
false
false
false
false
0