Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:janblunck
hdapsd
suse.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File suse.diff of Package hdapsd
--- hdapsd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) Index: hdapsd-20060409/hdapsd.c =================================================================== --- hdapsd-20060409.orig/hdapsd.c +++ hdapsd-20060409/hdapsd.c @@ -223,7 +223,7 @@ void usage() /* * check_thresh() - compare a value to the threshold */ -int check_thresh(double val_sqr, double thresh, int* above, int* near, +void check_thresh(double val_sqr, double thresh, int* above, int* near, char* reason_out, char reason_mark) { if (val_sqr > thresh*thresh*NEAR_THRESH_FACTOR*NEAR_THRESH_FACTOR) { @@ -269,7 +269,7 @@ int analyze(int x, int y, double unow, d double veloc_sqr, accel_sqr, avg_veloc_sqr; double exp_weight; double threshold; /* transient threshold for this iteration */ - char reason[3]; + char reason[4]; int recently_near_thresh; int above=0, near=0; /* above threshold, near threshold */ @@ -323,7 +323,7 @@ int analyze(int x, int y, double unow, d threshold *= PARKED_THRESH_FACTOR; /* Threshold test (uses Pythagoras's theorem) */ - strcpy(reason, " "); + strncpy(reason, " ", 3); check_thresh(veloc_sqr, threshold*VELOC_ADJUST, &above, &near, reason+0, 'V');
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor