~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/functions/time/sec_to_time.cc

  • Committer: Eric Herman
  • Date: 2008-12-06 19:42:46 UTC
  • mto: (656.1.6 devel)
  • mto: This revision was merged to the branch mainline in revision 665.
  • Revision ID: eric@mysql.com-20081206194246-5cdexuu81i366eek
removed trailing whitespace with simple script:

for file in $(find . -name "*.c") $(find . -name "*.cc") $(find . -name "*.h"); do ruby -pe 'gsub(/\s+$/, $/)' < $file > $file.out; mv $file.out $file; done;

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
    1                if the value was truncated during conversion
41
41
    0                otherwise
42
42
*/
43
 
 
 
43
 
44
44
static bool sec_to_time(int64_t seconds, bool unsigned_flag, DRIZZLE_TIME *ltime)
45
45
{
46
46
  uint32_t sec;
56
56
  }
57
57
  else if (seconds > 3020399)
58
58
    goto overflow;
59
 
 
 
59
 
60
60
  sec= (uint) ((uint64_t) seconds % 3600);
61
61
  ltime->hour= (uint) (seconds/3600);
62
62
  ltime->minute= sec/60;