DragonFly BSD
DragonFly commits List (threaded) for 2005-01
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

cvs commit: src/sbin/mount mntopts.h src/sbin/newfs fscopy.c mkfs.c newfs.c

From: Chris Pressey <cpressey@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 5 Jan 2005 19:21:00 -0800 (PST)

cpressey    2005/01/05 19:21:00 PST

DragonFly src repository

  Modified files:
    sbin/mount           mntopts.h 
    sbin/newfs           fscopy.c mkfs.c newfs.c 
  Raise WARNS of newfs to 6:
  - Use static char buffer instead of string constant;
  - Move and add some function prototypes;
  - Don't reuse a scratch variable, use a real pid_t to hold the
    result of a fork();
  - Cast variables as needed (mainly to u_long and u_int32) to avoid
    signed-unsigned comparison warnings;
  - Rename some variables to avoid name clashes;
  - Mark some parameters as unused;
  - Add MOPT_NULL as a struct mntopt constant for terminating a list.
  And apply some style(9):
  - Move out some loop invariant code, for clarity;
  - Remove `register' keywords;
  - Make explicit some checks against NULL.
  Based-on-patch-by: Peter Schuller
  Tested-by: typical usage of installer
  Revision  Changes    Path
  1.4       +3 -0      src/sbin/mount/mntopts.h
  1.5       +5 -3      src/sbin/newfs/fscopy.c
  1.10      +59 -48    src/sbin/newfs/mkfs.c
  1.12      +10 -10    src/sbin/newfs/newfs.c


[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]